Selenium Driver Java Version installation method
- Download Selenium-java-2.44.0.zip compressed file and unzip to the current folder, unpack and open
- Download Selenium-java-client-driver-1.0.2.jar
- Download Selenium-server-standalone-2.39.0.jar
- Download and install the Firefox browser
- Install two plugins in Firefox: Selenium IDE and Firebug
- Download and install Eclipse (because the eclipse installation will bring your own JDK) so this will not be necessary to install the JDK separately.
- Open Eclipse to create a project and copy the entire contents of the extracted selenium-java-2.44.0.zip into the project directory
- Click the project you just created right-select build path and select Configure build path to appear
Select the two items in the red box to add all the jar packages that you just copied to project
- Add all the jar packages in the Libs below project, and then add Selenium-java-2.44.0.jar and Selenium-java-2.44.0-srcs.jar
10. Copy and add Selenium-java-client-driver-1.0.2.jar and Selenium-server-standalone-2.39.0.jar to project
11. You can then create a class under Project and start Selenium server before you run class, which describes the startup method for selenium server
How to start Selenium server
Tip: The Selenium-server-standalone-2.39.0.jar has been downloaded in the previous steps
- Put Selenium-server-standalone-2.39.0.jar in the specified directory according to your needs (mine is placed in the C packing directory)
- Click the Start menu input cmd into the DOS interface, first jump to the C drive and then enter Java–jar Selenium-server-standalone-2.39.0.jar carriage return, that is, the launch of the selenium server, the display effect is as follows:
Precautions
- To be selected in the appropriate version of Firefox, some versions of Firefox cannot install selenium IDE and Firebug
- Select a higher version of the Selenium Java Zip package, the lower version of selenium may be running the program when the selenium version of the Firefox incompatible with the situation
These are my two days to install selenium some of the steps and methods, welcome to add, thank you.
Selenium Java version of the installation method and considerations