Selenium Java Maven automated test environment construction

  • Version Description:

JDK Version: 1.8.0_112;

Eclipse IDE: 4.6.1;

Maven Version: apache-maven-3.3.9;

Selenium Version: 3.0.1;

FirefoxVersion: 47.0.1;

: The installation packages required during the environment configuration process are provided with this document, and the user is asked to extract the corresponding compressed packages according to the following instructions.

 

  • Environmental configuration:
  • 1.” is in Taiwan.windowsInstall JDK on the computer and execute the EXE file jdk-8u112-windows-x64.exe in the installation package. After installation, configure the environment variables as follows:

 

 

 2.mavenThe compression package is decompressed to local and configured environment variables (to restart the computer).

 

 

3.mavenUnder the unzipped folder conf directory, modify the settings configuration file to specify a local path to store maven dependencies:

 

 

 4.eclipseConfigure Maven to specify the local configuration file for Maven:

 

 

 5.eclipseInstall testNG:

 

 

 6. 

 

 7. 

 

Or, using Google F12 to locate elements, Google does the same thing as selenium IDE, and Google is still powerful

 

Leave a Reply

Your email address will not be published. Required fields are marked *