Sunday, November 26, 2017

Selenium WebDriver Eclipse Java Project Setup

Selenium WebDriver Eclipse Java Project Setup

1.Open eclipse
2.Create project
3.Go to seleniumhq.org/download
  3A.Under "Selenium Server(formerly the Selenium RC Server)" header title -> click donwload version
  3B.Under "Selenium Client & WebDriver Language Bindigns" header title -> click Java Download
4.Go to eclipse>File>Folder>Create Folder name "lib"
5.Drag downloaded file "selenium-server-standalone-2.31.0.jar" file to created "lib" folder
6.Drag downloaded file from seleniu-java-2.31.0.zip folder the "selenium-java.2.31.0.jar" file to created lib folder
7.In lib folder select all the two dragged java files and click Build Path>Add to Build Path -> output: java files will be created in Referenced Libraries
8.Go to sourceforge.net/projects/junit/files/junit and click 4.10 folder
 8A.click "junit-4.10.jar"
9.Drag downloaded "junit-4.10.jar" file to created lib folder the build path>add to build path
10.Run test script in Selenium IDE and Export Test Case As.. Java/Unit4/WebDriver then save in created project folder>src in .java file
11.refresh Eclipse and click src then click exported test case.java file
12.in exported test case java file delete package com.example.test; and save

tags:
#selenium #webdriver #automation #TestAutomation