Tuesday, 14 July 2015

HOW TO CONFIGURE SELENIUM WEBDRIVER PROGRAMMES INTO ECLIPSE


Configuring selenium webdriver into eclipse

Open eclipse
Create new project (java) then right click on the project
Select the option properties
Select Java Build Path
Click on Libraries tab
Click on Add External JARs…
Select “selenium-java-2.24.1.jar, selenium-java-2.24.1-srcs.jar”
Click on Add External JARs…
Select all the jar files in the libs folder then
Click on ok.
Note:
Install firebug add on to Firefox browser then ( if you are using Firefox as Ur browser)
Install firepath add on ( for finding xpath of an element)
Above two things make us to identify elements very easily in a web page, almost like object spy in QTP.
Firebug: firebug is a add on of Firefox which is used for inspecting the web elements in the web application and knowing the information about them.
Firepath: firepath is a add on of Firefox which is used for specially showing the xpath of a web element.
Xpath: xpath is a unique locator of a web element in a webpage.
Navigation for firebug in the Firefox:
Open Firefox browser
Activate menu item tools
Go to web developers then
Go to firebug
Click on open firebug
To avoid above navigation press f12 we can directly open firebug.

No comments:

Post a Comment