11---
2- title : " IE specific functionality "
2+ title : " IE 特定功能 "
33linkTitle : " Internet Explorer"
44weight : 8
55description : >-
6- These are capabilities and features specific to Microsoft Internet Explorer browsers .
6+ 这些是 Microsoft Internet Explorer 浏览器特有的功能和特性 .
77aliases : [
88" /zh-cn/documentation/capabilities/internet_explorer"
99]
1010---
1111
12- As of June 2022 , Selenium officially no longer supports standalone Internet Explorer.
13- The Internet Explorer driver still supports running Microsoft Edge in "IE Compatibility Mode."
12+ 自2022年6月起 , Selenium 正式不再支持独立的 Internet Explorer.
13+ Internet Explorer 驱动程序仍支持在 "IE 兼容模式" 下运行 Microsoft Edge.
1414
15- ## Special considerations
15+ ## 特别注意事项
1616
17- The IE Driver is the only driver maintained by the Selenium Project directly .
18- While binaries for both the 32-bit and 64-bit
19- versions of Internet Explorer are available, there are some
20- [ known limitations ] ( //jimevansmusic.blogspot.co.uk/2014/09/screenshots-sendkeys-and-sixty-four.html )
21- with the 64-bit driver. As such it is recommended to use the 32-bit driver .
17+ IE 驱动程序是 Selenium 项目直接维护的唯一驱动程序 .
18+ 虽然 32 位和 64 位版本的版本的二进制文件,
19+ 但有一些64位驱动程序的
20+ [ 已知限制 ] ( //jimevansmusic.blogspot.co.uk/2014/09/screenshots-sendkeys-and-sixty-four.html ) .
21+ 因此, 建议使用 32 位驱动程序 .
2222
23- Additional information about using Internet Explorer can be found on the
24- [ IE Driver Server page ] ({{< ref "/documentation/ie_driver_server/" >}})
23+ 有关使用 Internet Explorer 的其他信息, 请参见
24+ [ IE 驱动程序服务器页面 ] ({{< ref "/documentation/ie_driver_server/" >}})
2525
26- ## Options
26+ ## 选项
27+
28+ 在 Internet Explorer 兼容模式下启动 Microsoft Edge 浏览器,
29+ 并使用基本定义的选项,
30+ 看起来就像这样:
2731
28- Starting a Microsoft Edge browser in Internet Explorer Compatibility mode with basic defined options looks like this:
2932
3033{{< tabpane text=true >}}
3134{{< tab header="Java" >}}
@@ -48,13 +51,14 @@ Starting a Microsoft Edge browser in Internet Explorer Compatibility mode with b
4851{{< /tab >}}
4952{{< /tabpane >}}
5053
51- As of Internet Explorer Driver v4.5.0:
52- * If IE is not present on the system (default in Windows 11), you do not need to
53- use the two parameters above. IE Driver will use Edge and will automatically locate it.
54- * If IE and Edge are both present on the system, you only need to set attaching to Edge,
55- IE Driver will automatically locate Edge on your system.
5654
57- So, if IE is not on the system, you only need:
55+ 截至 Internet Explorer 驱动程序 v4.5.0:
56+ * 如果系统中没有 IE(Windows 11 中的默认设置), 则无需使用上述两个参数.
57+ 使用上述两个参数.IE 驱动程序将使用 Edge, 并自动对其进行定位.
58+ * 如果系统上同时存在 IE 和 Edge, 则只需设置附加到 Edge、
59+ IE 驱动程序将自动在系统中定位 Edge.
60+
61+ 因此, 如果系统中没有 IE, 您只需要:
5862
5963{{< tabpane langEqualsHeader=true >}}
6064{{< tab header="Java" text=true >}}
@@ -82,7 +86,8 @@ val driver = InternetExplorerDriver(options)
8286{{< /tab >}}
8387{{< /tabpane >}}
8488
85- Here are a few common use cases with different capabilities:
89+
90+ 以下是几种具有不同功能的常见用例:
8691
8792### fileUploadDialogTimeout
8893
@@ -125,7 +130,7 @@ val driver = RemoteWebDriver(options)
125130此功能将清除InternetExplorer所有正在运行实例的
126131 _ 缓存, 浏览器历史记录和Cookies_
127132 (包括手动启动或由驱动程序启动的实例) .
128- 默认情况下, 此设置为 ` false ` .
133+ 默认情况下, 此设置为 ` false ` .
129134
130135使用此功能将导致启动浏览器时性能下降,
131136因为驱动程序将等待直到缓存清除后再启动IE浏览器.
@@ -216,7 +221,7 @@ val driver = RemoteWebDriver(options)
216221但是, 到目前为止,
217222这仍然是第二好的选择,
218223并且第一选择应该 * 始终* 是手动实际设置每个区域的保护模式设置.
219- 如果用户正在使用此属性,
224+ 如果用户正在使用此属性,
220225则只会给予 "尽力而为" 的支持.
221226
222227此功能接受一个布尔值作为参数.
@@ -495,18 +500,22 @@ fun main() {
495500
496501
497502
498- ## Service
503+ ## 服务
499504
500- Service settings common to all browsers are described on the [ Service page] ({{< ref "../drivers/service.md" >}}).
505+ [ Service page] ({{< ref "../drivers/service.md" >}})
506+ 描述了所有浏览器通用的服务设置.
501507
502- ### Log output
508+ ### 日志输出
503509
504- Getting driver logs can be helpful for debugging various issues. The Service class lets you
505- direct where the logs will go. Logging output is ignored unless the user directs it somewhere.
510+ 获取驱动程序日志有助于调试各种问题.
511+ 服务类可让您指示日志的去向.
512+ 除非用户指定了日志输出的位置,
513+ 否则日志输出将被忽略.
506514
507- #### File output
515+ #### 文件输出
516+
517+ 更改日志输出以保存到特定文件:
508518
509- To change the logging output to save to a specific file:
510519
511520{{< tabpane text=true >}}
512521{{% tab header="Java" %}}
@@ -534,9 +543,12 @@ Property value: String representing path to log file
534543{{< /tab >}}
535544{{< /tabpane >}}
536545
537- #### Console output
546+ #### 控制台输出
547+
548+
549+ 要更改日志输出, 使其在控制台中显示为标准输出:
550+
538551
539- To change the logging output to display in the console as STDOUT:
540552
541553{{< tabpane text=true >}}
542554{{% tab header="Java" %}}
@@ -565,9 +577,12 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR`
565577{{< /tab >}}
566578{{< /tabpane >}}
567579
568- ### Log Level
569- There are 6 available log levels: ` FATAL ` , ` ERROR ` , ` WARN ` , ` INFO ` , ` DEBUG ` , and ` TRACE `
570- If logging output is specified, the default level is ` FATAL `
580+
581+ ### 日志级别
582+ 有 6 种可用的日志级别:` FATAL ` 、` ERROR ` 、` WARN ` 、` INFO ` 、` DEBUG ` 和 ` TRACE `
583+ 如果指定了日志输出, 默认级别为` FATAL ` .
584+
585+
571586
572587{{< tabpane text=true >}}
573588{{% tab header="Java" %}}
@@ -594,7 +609,9 @@ Property value: String representation of `InternetExplorerDriverLogLevel.DEBUG.t
594609{{< /tab >}}
595610{{< /tabpane >}}
596611
597- ### Supporting Files Path
612+
613+ ### 辅助文件路径
614+
598615
599616{{< tabpane text=true >}}
600617{{< tab header="Java" >}}
0 commit comments