1 安装pyhon
2 python -m insgtall all --upgrade pip
3 pip install pip
4 pip install -U selenium 安装selenium
5 下载浏览器驱动放置python安装目录
6 编写简单测试代码
# coding = utf-8
from selenium import webdriver
browser = webdriver.Firefox()
browser.get("http://www.baidu.com")
browser.find_element_by_id("kw").send_keys("selenium")
browser.find_element_by_id("su").click()
browser.quit()
7 http://npm.taobao.org/mirrors/chromedriver/ chrome 驱动下载
8 pip install SendKeys pycharm
9 pip install uiautomator
10 pip install urlib3