Python Chrome启动浏览器

1.下载Chrome 驱动

2.将对应版本驱动放在

1)Chrome安装目录下

2)Python安装目录下(pip where Python)

3.Python里写如下脚本:

from selenium import webdriver

driver = webdriver.Chrome()
driver.get("http://www.baidu.com")

右键运行.py

你可能感兴趣的:(UI自动化,selenium,python)