Back
I enter a value in TextBox or a Combobox and would like to retrieve the value I have just entered. I see that the Selenium Weblement method 'getText()' doesn't retrieve the value, it seems the entered text doesn't get pushed into DOM.
Any Solutions?
Try getValue if it is a Text Field or Dropdown box
String lastname=selenium.getValue("//*[@id='lastName']");System.out.println(lastname);
String lastname=selenium.getValue("//*[@id='lastName']");
System.out.println(lastname);
31k questions
32.8k answers
501 comments
693 users