Category «Selenium 2.0»

Running Selenium Tests with ChromeDriver on Linux

Some of the pre-requisites has to be setup to execute the Selenium WebDriver tests with chromedriver on Linux Download the following Softwares before starting to write tests in eclipse. Download Google Chrome – Chrome for Linux Download ChromeDriver – ChromeDriver for Linux Install the Google Chrome on the Linux ennvironment by using the following methods: …

Selenium 2.0 WebDriver – ChromeDriver

Selenium 2.0 provides different webdriver bindings for each browsers.  For example, firefox has FirefoxDriver and internet explorer has InternetExplorerDriver.  Google Chrome has ChromeDriver bindings.  Implementation is little different but there is no major change.  Only we need to understand the way it works. For the FirefoxDriver, we need not start the server for execution of …

Selenium WebDriver – Handling Javascript Popups

In the latest release of Selenium 2.0 WebDriver Alert class is implemented.  Get the latest release of Selenium 2.0 from this Download link.  Download selenium-server-2.0rc3.zip and unzip into \Libraries folder.  Add “selenium-server-standalone-2.0rc3” to the classpath (Add the External Jar to buildpath of the project’s properties in Eclipse IDE). Here, I have taken an example HTML …

Selenium 2 with JUnit4 – Create Tests & Generate Reports

JUnit is a unit testing framework which mostly used for unit testing of Java projects.  JUnit4 is the enhanced version of JUnit 3 and comes with annotations such as @Before, @After, @Test, @AfterClass, @BeforeClass, etc.  (Please refer – http://tinyurl.com/6al62p8 for detailed discussion on these annotations).   JUnit4 can be utilized with Selenium 2.0 WebDriver or Selenium …