@@ -150,16 +150,16 @@ val driver = RemoteWebDriver(options)
150
150
151
151
### ensureCleanSession
152
152
153
- When set to ` true ` , this capability clears the _ Cache,
154
- Browser History and Cookies_ for all running instances
155
- of InternetExplorer including those started manually
156
- or by the driver. By default, it is set to ` false ` .
153
+ 设置为 ` true ` 时,
154
+ 此功能将清除InternetExplorer所有正在运行实例的
155
+ _ 缓存, 浏览器历史记录和Cookies_
156
+ (包括手动启动或由驱动程序启动的实例) .
157
+ 默认情况下,此设置为 ` false ` .
157
158
158
- Using this capability will cause performance drop while
159
- launching the browser, as the driver will wait until the cache
160
- gets cleared before launching the IE browser.
159
+ 使用此功能将导致启动浏览器时性能下降,
160
+ 因为驱动程序将等待直到缓存清除后再启动IE浏览器.
161
161
162
- This capability accepts a Boolean value as parameter .
162
+ 此功能接受一个布尔值作为参数 .
163
163
164
164
{{< code-tab >}}
165
165
{{< code-panel language="java" >}}
@@ -205,11 +205,12 @@ val driver = RemoteWebDriver(options)
205
205
206
206
### ignoreZoomSetting
207
207
208
- InternetExplorer driver expects the browser zoom level to be 100%,
209
- else the driver will throw an exception. This default behaviour
210
- can be disabled by setting the _ ignoreZoomSetting_ to _ true_ .
208
+ InternetExplorer驱动程序期望浏览器的缩放级别为100%,
209
+ 否则驱动程序将可能抛出异常.
210
+ 通过将 _ ignoreZoomSetting_ 设置为 _ true_ ,
211
+ 可以禁用此默认行为.
211
212
212
- This capability accepts a Boolean value as parameter.
213
+ 此功能接受一个布尔值作为参数.
213
214
214
215
{{< code-tab >}}
215
216
{{< code-panel language="java" >}}
@@ -255,21 +256,21 @@ val driver = RemoteWebDriver(options)
255
256
256
257
### ignoreProtectedModeSettings
257
258
258
- Whether to skip the _ Protected Mode_ check while launching
259
- a new IE session.
259
+ 启动新的IE会话时是否跳过 _ 保护模式_ 检查.
260
260
261
- If not set and _ Protected Mode_ settings are not same for
262
- for all zones, an exception will be thrown by the driver.
261
+ 如果未设置,
262
+ 并且所有区域的 _ 保护模式_ 设置都不同,
263
+ 则驱动程序将可能引发异常.
263
264
264
- If capability is set to ` true ` , tests may
265
- become flaky, unresponsive, or browsers may hang .
266
- However, this is still by far a second-best choice ,
267
- and the first choice should * always * be to actually
268
- set the Protected Mode settings of each zone manually.
269
- If a user is using this property,
270
- only a "best effort" at support will be given .
265
+ 如果将功能设置为 ` true ` ,
266
+ 则测试可能会变得不稳定, 无响应, 或者浏览器可能会挂起 .
267
+ 但是, 到目前为止 ,
268
+ 这仍然是第二好的选择,
269
+ 并且第一选择应该 * 始终 * 是手动实际设置每个区域的保护模式设置.
270
+ 如果用户正在使用此属性,
271
+ 则只会给予 "尽力而为" 的支持 .
271
272
272
- This capability accepts a Boolean value as parameter.
273
+ 此功能接受一个布尔值作为参数.
273
274
274
275
{{< code-tab >}}
275
276
{{< code-panel language="java" >}}
@@ -315,10 +316,10 @@ val driver = RemoteWebDriver(options)
315
316
316
317
### silent
317
318
318
- When set to ` true ` , this capability suppresses the
319
- diagnostic output of the IEDriverServer .
319
+ 设置为 ` true ` 时,
320
+ 此功能将禁止IEDriverServer的诊断输出 .
320
321
321
- This capability accepts a Boolean value as parameter.
322
+ 此功能接受一个布尔值作为参数.
322
323
323
324
{{< code-tab >}}
324
325
{{< code-panel language="java" >}}
@@ -384,22 +385,26 @@ fun main() {
384
385
{{< / code-panel >}}
385
386
{{< / code-tab >}}
386
387
387
- ### IE Command-Line Options
388
+ ### IE 命令行选项
388
389
389
- Internet Explorer includes several command-line options
390
- that enable you to troubleshoot and configure the browser .
390
+ Internet Explorer包含几个命令行选项,
391
+ 使您可以进行故障排除和配置浏览器 .
391
392
392
- The following describes few supported command-line options
393
+ 下面介绍了一些受支持的命令行选项
393
394
394
- * _ -private_ : Used to start IE in private browsing mode. This works for IE 8 and later versions.
395
+ * _ -private_ : 用于在私有浏览模式下启动IE.
396
+ 这适用于IE 8和更高版本.
395
397
396
- * _ -k_ : Starts Internet Explorer in kiosk mode.
397
- The browser opens in a maximized window that does not display the address bar, the navigation buttons, or the status bar.
398
+ * _ -k_ : 在kiosk模式下启动Internet Explorer.
399
+ 浏览器在一个最大化的窗口中打开,
400
+ 该窗口不显示地址栏, 导航按钮或状态栏.
398
401
399
- * _ -extoff_ : Starts IE in no add-on mode.
400
- This option specifically used to troubleshoot problems with browser add-ons. Works in IE 7 and later versions.
402
+ * _ -extoff_ : 在无附加模式下启动IE.
403
+ 此选项专门用于解决浏览器加载项问题.
404
+ 在IE 7和更高版本中均可使用.
401
405
402
- Note: __ forceCreateProcessApi__ should to enabled in-order for command line arguments to work.
406
+ 注意: __ forceCreateProcessApi__
407
+ 应该启用命令行参数才能正常工作.
403
408
404
409
{{< code-tab >}}
405
410
{{< code-panel language="java" >}}
@@ -503,11 +508,11 @@ fun main() {
503
508
504
509
### forceCreateProcessApi
505
510
506
- Forces launching Internet Explorer
507
- using the CreateProcess API. The default value is false.
511
+ 强制使用CreateProcess API启动Internet Explorer.
512
+ 默认值为false.
508
513
509
- For IE 8 and above, this option requires the
510
- "TabProcGrowth" registry value to be set to 0 .
514
+ 对于IE 8及更高版本,
515
+ 此选项要求将 "TabProcGrowth" 注册表值设置为0 .
511
516
512
517
{{< code-tab >}}
513
518
{{< code-panel language="java" >}}
0 commit comments