Tuesday, June 21, 2016

Get text from the textbox using Selenium 2.0

In order to get text from the textbox using Selenium 2.0 I used following

String myText = driver.FindElement(By.XPath("//input[@id='myTextBox']")).GetAttribute("value");

No comments: