1
1
---
2
- title : " IE specific functionality "
2
+ title : " IE 特定功能 "
3
3
linkTitle : " Internet Explorer"
4
4
weight : 8
5
5
description : >-
6
- These are capabilities and features specific to Microsoft Internet Explorer browsers .
6
+ 这些是 Microsoft Internet Explorer 浏览器特有的功能和特性 .
7
7
aliases : [
8
8
" /zh-cn/documentation/capabilities/internet_explorer"
9
9
]
10
10
---
11
11
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.
14
14
15
- ## Special considerations
15
+ ## 特别注意事项
16
16
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 位驱动程序 .
22
22
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/" >}})
25
25
26
- ## Options
26
+ ## 选项
27
+
28
+ 在 Internet Explorer 兼容模式下启动 Microsoft Edge 浏览器,
29
+ 并使用基本定义的选项,
30
+ 看起来就像这样:
27
31
28
- Starting a Microsoft Edge browser in Internet Explorer Compatibility mode with basic defined options looks like this:
29
32
30
33
{{< tabpane text=true >}}
31
34
{{< tab header="Java" >}}
@@ -48,13 +51,14 @@ Starting a Microsoft Edge browser in Internet Explorer Compatibility mode with b
48
51
{{< /tab >}}
49
52
{{< /tabpane >}}
50
53
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.
56
54
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, 您只需要:
58
62
59
63
{{< tabpane langEqualsHeader=true >}}
60
64
{{< tab header="Java" text=true >}}
@@ -82,7 +86,8 @@ val driver = InternetExplorerDriver(options)
82
86
{{< /tab >}}
83
87
{{< /tabpane >}}
84
88
85
- Here are a few common use cases with different capabilities:
89
+
90
+ 以下是几种具有不同功能的常见用例:
86
91
87
92
### fileUploadDialogTimeout
88
93
@@ -125,7 +130,7 @@ val driver = RemoteWebDriver(options)
125
130
此功能将清除InternetExplorer所有正在运行实例的
126
131
_ 缓存, 浏览器历史记录和Cookies_
127
132
(包括手动启动或由驱动程序启动的实例) .
128
- 默认情况下, 此设置为 ` false ` .
133
+ 默认情况下, 此设置为 ` false ` .
129
134
130
135
使用此功能将导致启动浏览器时性能下降,
131
136
因为驱动程序将等待直到缓存清除后再启动IE浏览器.
@@ -216,7 +221,7 @@ val driver = RemoteWebDriver(options)
216
221
但是, 到目前为止,
217
222
这仍然是第二好的选择,
218
223
并且第一选择应该 * 始终* 是手动实际设置每个区域的保护模式设置.
219
- 如果用户正在使用此属性,
224
+ 如果用户正在使用此属性,
220
225
则只会给予 "尽力而为" 的支持.
221
226
222
227
此功能接受一个布尔值作为参数.
@@ -495,18 +500,22 @@ fun main() {
495
500
496
501
497
502
498
- ## Service
503
+ ## 服务
499
504
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
+ 描述了所有浏览器通用的服务设置.
501
507
502
- ### Log output
508
+ ### 日志输出
503
509
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
+ 否则日志输出将被忽略.
506
514
507
- #### File output
515
+ #### 文件输出
516
+
517
+ 更改日志输出以保存到特定文件:
508
518
509
- To change the logging output to save to a specific file:
510
519
511
520
{{< tabpane text=true >}}
512
521
{{% tab header="Java" %}}
@@ -534,9 +543,12 @@ Property value: String representing path to log file
534
543
{{< /tab >}}
535
544
{{< /tabpane >}}
536
545
537
- #### Console output
546
+ #### 控制台输出
547
+
548
+
549
+ 要更改日志输出, 使其在控制台中显示为标准输出:
550
+
538
551
539
- To change the logging output to display in the console as STDOUT:
540
552
541
553
{{< tabpane text=true >}}
542
554
{{% tab header="Java" %}}
@@ -565,9 +577,12 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR`
565
577
{{< /tab >}}
566
578
{{< /tabpane >}}
567
579
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
+
571
586
572
587
{{< tabpane text=true >}}
573
588
{{% tab header="Java" %}}
@@ -594,7 +609,9 @@ Property value: String representation of `InternetExplorerDriverLogLevel.DEBUG.t
594
609
{{< /tab >}}
595
610
{{< /tabpane >}}
596
611
597
- ### Supporting Files Path
612
+
613
+ ### 辅助文件路径
614
+
598
615
599
616
{{< tabpane text=true >}}
600
617
{{< tab header="Java" >}}
0 commit comments