Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Win10_java+selenium environment building

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report