selenium自动化测相关试资源网站

一. JDK

1. 官方下载地址:https://www.oracle.com/java/technologies/javase-downloads.html

2. JDK 安装及配置

 

二、MAVEN

官方下载地址:http://maven.apache.org/download.cgi

2. MAVEN 安装及配置

 

三、各浏览器selenium驱动下载链接  (各驱动版本要与浏览器版本相一致)

1. selenium官方地址: https://www.selenium.dev/

2. 附送:selenium国内镜像网站,打不开selenium官网的可以在此下载! http://npm.taobao.org/mirrors

 

火狐浏览器驱动: 

https://firefox-source-docs.mozilla.org/testing/geckodriver/Support.html

https://github.com/mozilla/geckodriver/releases

IE浏览器驱动:

https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver#required-configuration

https://selenium-release.storage.googleapis.com/index.html

谷歌浏览器驱动:

https://chromedriver.chromium.org/

https://chromedriver.chromium.org/downloads

Edge浏览器驱动:

https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/#downloads

 

四、intelli IDEA

官方下载地址:https://www.jetbrains.com/idea 

1. IDEA汉化:setting-plugins-Marketplace-Chinese (Simplified) Language Pack

 

五、pom.xml jar包

打开IDEA,新建一个Maven项目,

在默认打开的pom.xml中添加我们需要的SeleniumtestNG

selenium-java
testng

maven的jar包库地址:http://mvnrepository.com/

    <dependencies>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>3.14.0</version>
        </dependency>

        <!-- 与 selenium-java 版本要一致 -->
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-api</artifactId>
            <version>3.14.0</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.testng/testng -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>7.4.0</version>
        </dependency>
    </dependencies>
View Code

 

六、selenium 浏览器驱动

下载好的驱动,放到你的文件夹中,推荐命名driver,方便辨识

 

posted @ 2021-08-15 13:26  测试长流  阅读(560)  评论(0)    收藏  举报