Validating the text from a text box using Selenium RC 

Here is the html code input id=”qu” and the text in the text input box is Selenium Wiki.


To validate the text from a text box using Selenium RC you will have to use the Selenium command selenium.getValue(). This will get the value in the location input id=”qu”.
selenium.getValue(“//input[@id='qu']“)

If you found this solution helpful or have something extra to add, feel free to share it here by commenting below.


Google Webdriver Forum -The Online Community for Google Webdriver and Selenium RC Users and Professionals
2 responses to “Validating the text from a text box using Selenium RC”
  1. Cheers says:

    Excellent work.. It will be great if you Use any sample website and continue this work.

  2. Usman says:

    We can also use the getText API aswell.

Leave a Reply