赞
踩
chromedriver.storage.googleapis.com/index.html
将下载解压后的chromedriver.exe放到python.exe同一目录下
cmd输入where python
python.exe的路径即pycharm中选择的python解释器的路径
- from selenuim import webdriver
- import time
-
- driver = webdriver.Chrome()
- driver.maximize_window()
- driver.get('http://www.baidu.com')
- time.sleep(3)
- driver.quit()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。