Selenium-WebDriver driver comparison table

 The learning of interface testing has come to an end. Next, we will start the UI automation course. The following is the preparation for UI automation. Please prepare the environment carefully. Feel free to ask me any questions! !
        1. Install the professional version of pycharm, as long as the license is filled in, it is the professional version of pycharm
 
        2. Install the selenium package in python pip install selenium
 
        3. Install the Appium-Python-Client package in python pip install Appium-Python-Client
 
        4. Download the Chrome pair driver according to the http://www.imdsx.cn/index.php/2017/08/02/drvier/  driver comparison table, and add it to the PATH environment variable (copy it to the scripts directory of the python installation directory) ), copy the code below. I can open my blog and configure the environment successfully.
        from selenium import webdriver
        driver = webdriver.Chrome()
        driver.get(' http://www.imdsx.cn ')
 
 5. Install Firefox and IE drivers         according to http://www.imdsx.cn/index.php/2017/08/02/drvier/
        Firefox browser test code
        from selenium import webdriver
        driver = webdriver.Firefox()
        driver.get(' http://www.imdsx.cn ')
 
        IE browser test code
        from selenium import webdriver
        driver = webdriver.Ie()
        driver.get(' http://www.imdsx.cn ')
 
        I can open my blog and configure the environment successfully.
Click to download chrome's webdriver:  http://chromedriver.storage.googleapis.com/index.html
Firefox
The Firefox driver download address is: https://github.com/mozilla/geckodriver/releases/
You can download the corresponding driver according to your own operating system. If you want to use it, you need to add the path of the driver and the path of the Firefox browser to the environment variable.
IE
The IE browser driver download address is: http://selenium-release.storage.googleapis.com/index.html
You can download the corresponding version of the driver according to your own selenium version. For python, you can download the IEDriverServerxxx.zip in it. This is to distinguish 32-bit and 64-bit systems. You can download it according to your own system. It should be noted that if you want to open it For IE browser, you need to have 4 security options in the security page of the browser's Internet options, Internet, Local Internet, Trusted Sites, Restricted Sites, each of which has an enabled protected mode. It needs to be checked, and the path of the driver must be added to the environment variable.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326618923&siteId=291194637