This session helps to setup selenium in eclipse windows 7 machine
1. Download the latest eclipse depending on your machine 64 bit or 32 bit from eclipse official site
http://www.eclipse.org/downloads/
2. Download JAVA 7 or JAVA 8 (i.e JDK) depending on need from oracle site
https://java.com/en/download/
3. Install JAVA by double clicking on the Exe file. that is for example"jdk-8u71-windows-x64.exe".
4. Setup environment variable JAVA_HOME.
i. Right click on my computer.
ii. Click on "properties".
iii. Click on "Advanced System Setting" from the window opened in the previous step.
iv. Click on "Environment Variable" button from system properties window.Opened after the previous step.
v. Under "System variable " section click on "New" button.
vi.Enter "variable name" as "JAVA_HOME"
vii. Enter "variable value" as "C:\Program Files\Java\jdk1.8.0_111" ( Write JAVA installed path)
viii. Click Ok button
5. Click on eclipse icon.
6. Create "New Project" in eclipse.
7. Download "selenium-server-standalone-2.48.2.jar"
8. Import Selenium JAR into the newly created project. [ Importing JAR into the project: Right click on project -> click on Build path -> Click on Configure build path -> Click on add external jars -> Select selenium jar and click apply button].
9. Check imported jar is seen in the project.
10. Install firefox browser 24.0 version ( Mentioning browser version because 24.0 is compatible with selenium version 2.48.2)
10. Install firefox browser 24.0 version ( Mentioning browser version because 24.0 is compatible with selenium version 2.48.2)
No comments:
Post a Comment