配合Selenium自动下载和安装浏览器驱动程序

天问 7ac28741ac Update 'README.md' 1 year ago
README.md 7ac28741ac Update 'README.md' 1 year ago

README.md

webdriver_manager

配合Selenium自动下载和安装浏览器驱动程序

Usage

python版本

pip install webdriver_manager

from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(executable_path=ChromeDriverManager().install())


java版本

https://github.com/bonigarcia/webdrivermanager

<dependency>
    <groupId>io.github.bonigarcia</groupId>
    <artifactId>webdrivermanager</artifactId>
    <version>5.3.1</version>
    <scrop>coompile</scope>
</dependency>