Learn Selenium

Thursday, November 26, 2015

Setup environment for Automation Testing with SELENIUM using JAVA

Installing Java

In this blog, all the code examples that describes by covering various features of  WebDriver will be in Java. To follow these examples and write your own code, you need Java Development Kit installed on your computer. The latest version of JDK can be downloaded from the following link:

For Windows 7 32 / 64 bit, Mac

For Ubuntu


A step-by-step installation guide is available at the following link:


Installing Eclipse

We need an IDE to write and excecute selenium webdriver scripts examples. For this, it would be handy to install a Java IDE. You can install your favorite IDE. Here, I am installing Eclipse. It can be downloaded from the following link:

Most of the automation testing is done on the Firefox browser in this blog. Any how, will talk about other browsers by going further learning process. It can be downloaded from the following link:

For identifying an elements on the web page, widely used to inspect HTML elements by using one of the Firefox add-on called Firebug. It can be downloaded from the following link:

After installation, when you open the Firefox browser, you should see the firebug icon on the top-right corner of the browser. Now, click on the Firebug icon to load the Firebug UI to inspect an elements.

Installing Firepath

After you have installed the Firebug add-on to Firefox, it's time to extend Firebug to have something named FirePath. FirePath is used to get XPath and CSS values of an HTML element on a web page. You can download FirePath from the following location:

https://addons.mozilla.org/EN-us/firefox/addon/firepath/

FirePath


After installation, you should see a new tab in the Firebug UI for FirePath, which is often usable for selenium automation for scripting process.

Download selenium jar files

To run Selenium Webdriver remotely, we need selenium standalone server. It can be downloaded from the following link: http://www.seleniumhq.org/download/
To create scripts that should interact with selenium webdriver, we need language-specific client drivers. Here scripts are written in the Java language. It can be downloaded from the following link: http://www.seleniumhq.org/download/.

After download selenium-standalone-sevrer.2.x and selenium-java-2.x.zip files. Extract them into a folder.


1 comment:

  1. Hello Suvama,
    The Article on Automation Testing with SELENIUM using JAVA is nice give detail information about it.Thanks for Sharing the information about Setuping the Automation Testing. Software Testing Services

    ReplyDelete