power_settings_new

how to get text from text box

by
asked
+1 vote
42 views
I have text box. getText() function is not working

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by
0 votes

Try using

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

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

add
...