Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
7ac28741ac
1 changed files with 28 additions and 1 deletions
  1. 28 1
      README.md

+ 28 - 1
README.md

@@ -1,3 +1,30 @@
 # webdriver_manager
 
-配合Selenium自动下载和安装浏览器驱动程序
+配合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>
+
+
+```