Skip to main content

针对115以上版本的谷歌游览器自动升级selenium驱动。

Project description

用法示例:

from UpdateChromeDriver.UpdateChromeDriver import *

options = webdriver.ChromeOptions()
options.add_experimental_option(
    'excludeSwitches', ['enable-logging', 'enable-automation'])
browser = getChromeBrowser(options)
browser.get("https://www.baidu.com/")
time.sleep(2)

驱动会从下载到~.cache\selenium 下载来源:https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

UpdateChromeDriver-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

UpdateChromeDriver-0.0.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page