ITPub博客

首页 > > > selenium打开chrome浏览器代码

selenium打开chrome浏览器代码

作者:longmanma 时间:2020-01-10 17:55:38 0 删除 编辑
复制代码
import os
from selenium import webdriver

chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

os.environ["webdriver.chrome.driver"] = chromedriver

driver =  webdriver.Chrome(chromedriver)

driver.quit()
复制代码

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2730/viewspace-3164329/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: handler模块
请登录后发表评论 登录
全部评论

注册时间:2019-12-18

  • 博文量
    492
  • 访问量
    11988