您现在的位置是:网站首页>文章详情文章详情
指定驱动和chrome位置启动selenium
inlike2019-11-23【 原创文章 】 浏览(2752) 评论(0) 喜欢(38)
简介指定驱动和chrome位置启动selenium
在win10下指定selenium的驱动以及需要打开的浏览器器版本
from selenium import webdriver
options = webdriver.ChromeOptions()
options.binary_location = path+r'\bangzhanbrower.exe' # 指定chrome可执行文件路径
driver = webdriver.Chrome(executable_path=path, chrome_options=options) # executable_path指定驱动可执行文件路径
标签
相关文章
本栏推荐
标签云
猜你喜欢
站点信息
- 建站时间:2019-5-24
- 网站程序:like in love
- 主题模板:《今夕何夕》
- 文章统计:104条
- 文章评论:***条
- 微信公众号:扫描二维码,关注我们