针对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
下载最新版:
pip install UpdateChromeDriver --index-url https://pypi.org/simple/ -U
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for UpdateChromeDriver-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7d973ade2159876894345ef9570f71da37d8bf2f51543e1644c2e0cd4c1d17a |
|
MD5 | a2bbdb3c406e3f1020b8c8ee03a706ef |
|
BLAKE2b-256 | 2050bcebe287063b2ac5057942be6699d279b14545e4024cfce46889a1ed1460 |