Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. //find the element that has the text Hello World
  2. var text = _driver.FindElement(By.XPath(".//*[contains(text(),'Hello World!')]"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement