README.md 520 B

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>