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 […]

How to add proxy setting to webdriver

I had to run the Webdriver scripts on a Firefox and I had to use a particular proxy to get access to the QA/Dev environment. Here is the code that you can use to change the proxy settings. FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.setPreference(“network.proxy.type”, 1); firefoxProfile.setPreference(“network.proxy.http”, “”); firefoxProfile.setPreference(“network.proxy.http_port”, 80); firefoxProfile.setPreference(“network.proxy.ssl”, “”); firefoxProfile.setPreference(“network.proxy.ssl_port”, 80); firefoxProfile.setPreference(“network.proxy.no_proxies_on”, “”); […]

How to install Selenium RC and run using Ruby code

Here are the steps that you need to follow to install and run Selenium RC using Ruby code. 1. Download the latest version of Selenium RC 2. Unzip the file save it C:\selenium-remote-control-1.0.3 3. command prompt>java -version –> Version should grater than 1.6.0_5 4. command prompt go to –> C:\selenium-remote-control-1.0.3\selenium-server-1.0.3>java -jar selenium-server.jar 5. Download the […]

What is Selenium WebDriver

WebDriver uses a different underlying framework from Selenium’s javascript Selenium-Core. It also provides an alternative API with functionality not supported in Selenium-RC. WebDriver does not depend on a javascript core embedded within the browser, therefore it is able to avoid some long-running Selenium limitations. WebDriver’s goal is to provide an API that establishes • A […]