Win10_java+selenium environment building
I talked about python+selenium before, but now I'm going to talk about java+selenium. Let's take a look at the ring first.
How to build a mirror.
Download and install the latest version of jdk8.0 (this should be up-to-date, otherwise installing eclipse will prompt you to download).
Official download address:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download and install directly to the end.
Configure environment variables
Create a new JAVAHOME with a value equal to the jdk installation directory (C:\ Program Files\ Java\ jdk1.8.0_131)
Add the following two paths to the variable:
Add the following path to the CLASSPATH variable (which will be called when this eclipse is called):
CMD verifies that jdk is installed and that the environment variables are configured:
After Java is installed, we need to install eclipse
Official download address:
Https://www.eclipse.org/downloads/download.php?file=/oomph/epp/oxygen/R/eclipse-inst-win64.exe
After downloading, click to open the installation file, and select the first option to install:
When the installation is complete, open eclipse and create a space to create the project java project under the space
Fill in the name, and then click finish by default. Then right-click the project to create a new class, the class
The first name must start in uppercase.
When you are done, there will be a framework for testing.
We'll talk about the example of the actual test later. If you have any questions, you can add × × stream QQ group: 610845268