The learning of interface testing is over, and then we're going to start the UI Automation course, and here's the tutorial for UI Automation, please prepare your environment carefully. Ask me whenever you have questions!! 1, installation Professional version pycharm, as long as the licensed are filled in the professional version of the pycharm 2, Python Install Selenium package PIP install selenium 3, python install Appium-python-client package pip Install appium-python-client 4, according to http://www.imdsx.cn/index.php/2017/08/02/drvier/ Driver table Download the chrome pair driver and add it to the PATH environment variable (below the scripts directory of the Python installation directory) and copy the code below. can open my blog for environment configuration success. from selenium import webdriver Driver = Webdriver. Chrome () driver.get (' http://www.imdsx.cn ') 5, according to HTTP// www.imdsx.cn/index.php/2017/08/02/drvier/ install Firefox and IE drivers Firefox test code from selenium import webdriver Driver = Webdriver. Firefox () driver.get (' http://www.imdsx.cn ') &NBSp Internet Explorer test code from selenium import webdriver DRIVER = webd River. Ie () driver.get (' http://www.imdsx.cn ') can open my blog for environment configuration success. Click to download Chrome's Webdriver: http://chromedriver.storage.googleapis.com/index.htmlfirefoxfirefox driver: https:// Github.com/mozilla/geckodriver/releases/according to their own operating system to download the corresponding driver can be used, you need to drive the path and Firefox path to add to the environment variables can be ieie browser driver: http:/ /selenium-release.storage.googleapis.com/ Index.html according to their own selenium version download the corresponding version of the driver can, Python, download the iedriverserverxxx.zip can, this is to distinguish between 32 and 64-bit system, according to their own system download can, it should be noted that if you want to open IE browser, There are 4 security options on the Security page in the browser's Internet options, the Internet, the local Internet, the trusted site, the restricted site, all 4 of which have a protected mode enabled, which needs to be checked and the driver's path added to the environment variable.
Selenium-webdriver Drive Comparison Table