zoukankan      html  css  js  c++  java
  • selenium3相关jar包及驱动下载

    JAVA启动火狐浏览器:

    System.setProperty("webdriver.firefox.bin","C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");  ——如果浏览器未默认安装或有多个火狐浏览器需要指定浏览器的安装地址;
    System.setProperty("webdriver.gecko.driver","D:\\yyy\\driver\\geckodriver.exe"); ——火狐浏览器driver驱动器位置;
    WebDriver driver=new FirefoxDriver();

    JAVA启动谷歌浏览器:

    System.setProperty("webdriver.chrome.driver","D:\\yyy\\driver\\chromedriver.exe"); ——谷歌浏览器driver驱动器位置;
    WebDriver driver=new ChromeDriver();

    JAVA启动IE浏览器:

    System.setProperty("webdriver.ie.driver","D:\\yyy\\driver\\IEDriverServer.exe"); ——IE浏览器driver驱动器位置;
    WebDriver driver=new InternetExplorerDriver();

    Selenium Standalone Server:用来搭建远程测试平台以及分布式测试,下载地址:http://selenium-release.storage.googleapis.com/index.html

    Selenium WebDriver:用来创建测试脚本以及和Selenium Standalone Server进行交互的客户端的驱动。不同的开发语言有不同的版本,下载地址:https://www.selenium.dev/downloads/

     浏览器驱动下载地址:

    Firefox驱动:https://github.com/mozilla/geckodriver/releases/

    chrome驱动:http://chromedriver.storage.googleapis.com/index.html

    IE驱动:http://selenium-release.storage.googleapis.com/index.html

    Microsoft Edge Legacy浏览器驱动:https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

     Microsoft Edge浏览器驱动:https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

     Opera浏览器驱动:https://github.com/operasoftware/operachromiumdriver/releases

     各驱动需对照自己电脑系统及浏览器版本对应下载。

    所有驱动下载地址:https://www.selenium.dev/documentation/en/webdriver/driver_requirements/

    
    
  • 相关阅读:
    232. Implement Queue using Stacks
    231. Power of Two
    n&(n-1)位运算的妙用
    230. Kth Smallest Element in a BST
    关于UNIX的exec函数
    Go语言的各种Print函数
    Go语言的接口interface、struct和组合、继承
    Go语言知识点笔记
    Ubuntu自定义终端窗口位置
    Python的类变量和成员变量、类静态方法和类成员方法
  • 原文地址:https://www.cnblogs.com/yanglulu/p/13841699.html
Copyright © 2011-2022 走看看