Monday, 18 February 2013

WebDriver Configuration in Eclipse



Pre-requisite
Java JDK should install on the system. Also the Java path should be available in Environment variable. To verify this, see the below screen – 

WebDriver Configuration in Eclipse
From http://code.google.com/p/selenium/downloads/list download the following two files:

  • Selenium-server-standalone-2.29.0.jar contains the Selenium server (required to use Selenium 1.x classes) and the RemoteWebDriver server, which can be executed via java -jar.
  •  Selenium-java-2.29.0.zip contains the Java language bindings for Selenium 2.0. All of the necessary dependencies are bundled.
  • Launched the eclipse (See the Configuration document and configure accordingly).
  • Click File -> New -> Java Projects.
  •  Shows below screen.  Enter the project name (ex – TestLink) and click on Finish. Project will create.



  • Right click on the project name and Select New->Folder. Create a folder “lib” under the project name.
  • Placed the below downloaded jar files under above created “lib” folder.

selenium-java-2.29.0.jar
selenium-java-standalone-2.29.0.jar
  • Right click on project name and select Properties. Click on Java Build Path. Click on Libraries tab.
  • Click on Add Jars. Add all the jar files from above create “lib” folder. It looks like the below screen –
             
  • Click on Ok button.

No comments:

Post a Comment