@@ -47,25 +47,28 @@ val driver = SafariDriver(options)
47
47
{{< /tabpane >}}
48
48
49
49
### 移动端
50
- 那些希望在iOS上自动化Safari的人可以参考 [ Appium project ] ( //appium.io/ ) .
50
+ 那些希望在iOS上自动化Safari的人可以参考 [ Appium 项目 ] ( //appium.io/ ) .
51
51
52
52
53
- ## Service
53
+ ## 服务
54
54
55
- Service settings common to all browsers are described on the [ Service page ] ({{< ref "../drivers/service.md" >}}).
55
+ 所有浏览器通用的服务设置在 [ 服务页面 ] ({{< ref "../drivers/service.md" >}}).
56
56
57
- ### Logging
57
+ ### 日志
58
58
59
- Unlike other browsers, Safari doesn't let you choose where logs are output, or change levels. The one option
60
- available is to turn logs off or on. If logs are toggled on, they can be found at:` ~/Library/Logs/com.apple.WebDriver/ ` .
59
+ 与其他浏览器不同,
60
+ Safari 浏览器不允许您选择日志的输出位置或更改级别.
61
+ 一个可用选项是关闭或打开日志.
62
+ 如果日志处于打开状态,
63
+ 则可以在以下位置找到它们: ` ~/Library/Logs/com.apple.WebDriver/ ` .
61
64
62
65
{{< tabpane text=true >}}
63
66
{{% tab header="Java" %}}
64
67
{{< badge-version version="4.10" >}}
65
68
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/SafariTest.java#L31" >}}
66
- ** Note ** : Java also allows setting console output by System Property ;\
67
- Property key : ` SafariDriverService.SAFARI_DRIVER_LOGGING ` \
68
- Property value : ` "true" ` or ` "false" `
69
+ ** 注意 ** : Java也允许使用环境变量进行设置 ;\
70
+ 属性键 : ` SafariDriverService.SAFARI_DRIVER_LOGGING ` \
71
+ 属性值 : ` "true" ` 或 ` "false" `
69
72
{{% /tab %}}
70
73
{{< tab header="Python" >}}
71
74
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
@@ -88,8 +91,9 @@ Property value: `"true"` or `"false"`
88
91
89
92
## Safari Technology Preview
90
93
91
- Apple provides a development version of their browser — [ Safari Technology Preview] ( https://developer.apple.com/safari/technology-preview/ )
92
- To use this version in your code:
94
+ Apple 提供了其浏览器的开发版本 — [ Safari Technology Preview] ( https://developer.apple.com/safari/technology-preview/ )
95
+
96
+ 在代码中使用此版本:
93
97
94
98
{{< tabpane text=true >}}
95
99
{{< tab header="Java" >}}
0 commit comments