@@ -34,29 +34,28 @@ WebDriver尽量使用浏览器内置的自动化支持
34
34
</p >
35
35
{{% /pageinfo %}}
36
36
37
- ## Four Ways to Use Drivers
37
+ ## 四种使用驱动的方法
38
38
39
39
### 1. Selenium Manager <small >(Beta)</small >
40
40
41
41
{{< badge-version version="4.6" >}}
42
42
43
- Selenium Manager helps you to get a working environment to run Selenium out of the box. Beta 1
44
- of Selenium Manager will configure the drivers for Chrome, Firefox, and Edge if they are not
45
- found on the ` PATH ` . No extra configuration is needed. Future releases of Selenium Manager
46
- will eventually even download browsers if necessary.
43
+ Selenium Manager可以帮助你获得一个运行Selenium的开箱即用的环境。
44
+ 如果在` PATH ` 中没有找到Chrome、Firefox和Edge的驱动,Selenium Manager的Beta 1版将为它们配置。
45
+ 不需要额外的配置。如果有必要,Selenium Manager的未来版本也会在必要时一同下载浏览器。
47
46
48
- Read more at the blog announcement for [ Selenium Manager ] ( /blog/2022/introducing-selenium-manager/ ) .
47
+ 在这篇 [ 公告 ] ( /blog/2022/introducing-selenium-manager/ ) 中了解更多有关 Selenium Manager 的信息。
49
48
50
49
### 2. 驱动管理软件
51
50
52
51
大多数机器会自动更新浏览器,
53
- 但驱动程序不会 .
52
+ 但不会自动更新驱动程序 .
54
53
为了确保为浏览器提供正确的驱动程序,
55
54
这里有许多第三方库可为您提供帮助.
56
55
57
56
{{< tabpane code=false langEqualsHeader=true >}}
58
57
{{% tab header="Java" %}}
59
- ** Important: ** This package does not currently work for IEDriverServer v4+
58
+ ** 注意: ** 这个软件包目前不能用于IEDriverServer v4以上的版本。
60
59
61
60
1 . 导入 [ WebDriverManager] ( https://github.com/bonigarcia/webdrivermanager )
62
61
``` java
@@ -117,7 +116,7 @@ driver = Selenium::WebDriver.for :chrome
117
116
118
117
{{% /tab %}}
119
118
{{% tab header="JavaScript" %}}
120
- * There is not a recommended driver manager for JavaScript at this time *
119
+ * 暂时还没有推荐的JavaScript驱动管理器 *
121
120
{{% /tab %}}
122
121
{{% tab header="Kotlin" %}}
123
122
@@ -286,7 +285,7 @@ fun main(args: Array<String>) {
286
285
| Internet Explorer | Windows | Selenium Project | [ 下载] ( /downloads ) | [ Issues] ( //github.com/SeleniumHQ/selenium/labels/D-IE ) |
287
286
| Safari | macOS High Sierra and newer | Apple | 内置 | [ Issues] ( //bugreport.apple.com/logon ) |
288
287
289
- Note: The Opera driver no longer works with the latest functionality of Selenium and is currently officially unsupported.
288
+ 备注:Opera驱动不再适用于Selenium的最新功能,目前官方不支持。
290
289
291
290
292
291
## 下一步
0 commit comments