Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
136 views
in Selenium by
recategorized by
I have text box. getText() function is not working

1 Answer

0 like 0 dislike
by

Try using

WebElement textbox = driver.findElement(//waytofindtextbox);

String text = textbox.getAttribute("value");


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...