Skip to content

Commit 4ea6ecb

Browse files
authored
feature/safari_20240701 (#1791)
update feature/safari
1 parent f62c850 commit 4ea6ecb

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

website_and_docs/content/documentation/webdriver/browsers/safari.zh-cn.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,28 @@ val driver = SafariDriver(options)
4747
{{< /tabpane >}}
4848

4949
### 移动端
50-
那些希望在iOS上自动化Safari的人可以参考 [Appium project](//appium.io/).
50+
那些希望在iOS上自动化Safari的人可以参考 [Appium 项目](//appium.io/).
5151

5252

53-
## Service
53+
## 服务
5454

55-
Service settings common to all browsers are described on the [Service page]({{< ref "../drivers/service.md" >}}).
55+
所有浏览器通用的服务设置在 [服务页面]({{< ref "../drivers/service.md" >}}).
5656

57-
### Logging
57+
### 日志
5858

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/`.
6164

6265
{{< tabpane text=true >}}
6366
{{% tab header="Java" %}}
6467
{{< badge-version version="4.10" >}}
6568
{{< 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"`
6972
{{% /tab %}}
7073
{{< tab header="Python" >}}
7174
{{< gh-codeblock path="examples/python/tests/browsers/test_safari.py#L17" >}}
@@ -88,8 +91,9 @@ Property value: `"true"` or `"false"`
8891

8992
## Safari Technology Preview
9093

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+
在代码中使用此版本:
9397

9498
{{< tabpane text=true >}}
9599
{{< tab header="Java" >}}

0 commit comments

Comments
 (0)