Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //find the element that has the text Hello World
- var text = _driver.FindElement(By.XPath(".//*[contains(text(),'Hello World!')]"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement