Skip to content

Commit 4e32643

Browse files
authored
Update Bidi Logging Doc for zh-cn (#2290)
* Update Bidi Logging Doc for zh-cn
1 parent d716f06 commit 4e32643

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

website_and_docs/content/documentation/webdriver/bidi/logging.zh-cn.md

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
---
2-
title: "WebDriver BiDi Logging Features"
3-
linkTitle: "Logging"
2+
title: "WebDriver BiDi 日志功能"
3+
linkTitle: "日志"
44
weight: 1
55
description: >
6-
These features are related to logging. Because "logging" can refer to so many
7-
different things, these methods are made available via a "script" namespace.
6+
这些功能与日志记录有关。
7+
由于"logging"可以指代许多不同的事物,
8+
因此这些方法通过"script"命名空间提供.
89
aliases: [
910
"/documentation/zh-cn/webdriver/bidirectional/bidirectional_w3c/log",
1011
"/documentation/webdriver/bidirectional/webdriver_bidi/log"
1112
]
1213
---
1314

14-
Remember that to use WebDriver BiDi, you must enable it in Options.
15-
For more details, see [Enabling BiDi]({{< ref "BiDi" >}})
15+
请记住, 要使用 WebDriver BiDi,
16+
您必须在选项中启用它.
17+
更多详情, 请参阅 [启用 BiDi]({{< ref "BiDi" >}}) .
1618

17-
## Console Message Handlers
19+
## 控制台消息处理程序
1820

19-
Record or take actions on `console.log` events.
21+
记录或对 `console.log` 事件采取行动.
2022

21-
### Add Handler
23+
### 添加处理程序
2224

2325
{{< tabpane text=true >}}
2426
{{< tab header="Java" >}}
@@ -41,9 +43,9 @@ Record or take actions on `console.log` events.
4143
{{< /tab >}}
4244
{{< /tabpane >}}
4345

44-
### Remove Handler
46+
### 删除处理程序
4547

46-
You need to store the ID returned when adding the handler to delete it.
48+
您需要存储添加处理程序时返回的 ID 以便将其删除.
4749

4850
{{< tabpane text=true >}}
4951
{{< tab header="Java" >}}
@@ -66,11 +68,11 @@ You need to store the ID returned when adding the handler to delete it.
6668
{{< /tab >}}
6769
{{< /tabpane >}}
6870

69-
## JavaScript Exception Handlers
71+
## JavaScript 异常处理程序
7072

71-
Record or take actions on JavaScript exception events.
73+
记录或对 JavaScript 异常事件采取行动.
7274

73-
### Add Handler
75+
### 添加处理程序
7476

7577
{{< tabpane text=true >}}
7678
{{< tab header="Java" >}}
@@ -93,9 +95,9 @@ Record or take actions on JavaScript exception events.
9395
{{< /tab >}}
9496
{{< /tabpane >}}
9597

96-
### Remove Handler
98+
### 删除处理程序
9799

98-
You need to store the ID returned when adding the handler to delete it.
100+
您需要存储添加处理程序时返回的 ID 以便将其删除.
99101

100102
{{< tabpane text=true >}}
101103
{{< tab header="Java" >}}

0 commit comments

Comments
 (0)