@@ -3,30 +3,22 @@ title: "WebDriver Bidi APIs"
3
3
weight : 3
4
4
---
5
5
6
- {{% notice %}}
7
- <i class =" fas fa-language " ></i > Page being translated from
8
- English to Simplified Chinese. Do you speak Simplified? Help us to translate
9
- it by sending us pull requests!
10
- {{% /notice %}}
11
-
12
- In Selenium 4, new Evented APIs were introduced that
13
- allow users to be able to capture events from the
14
- browser as they happen rather than using the
15
- traditional approach of Request/Response that
16
- WebDriver has used for other APIs.
17
-
18
- Internally WebDriver will create a WebSocket connection
19
- to the browser for events and commands to be transmitted.
20
-
21
- The following list of APIs will be growing as the Selenium
22
- project works through supporting real world use cases. If there
23
- is a missing API, please raise a [ feature request] ( https://github.com/SeleniumHQ/selenium/issues/new?assignees=&labels=&template=feature.md ) .
24
-
25
- ## Mutation Observation
26
-
27
- Mutation Observation is the ability to capture events via
28
- WebDriver BiDi when there are DOM mutations on a specific
29
- element in the DOM.
6
+
7
+ 在Selenium 4中, 引入了新的事件API,
8
+ 使用户能够在事件发生时从浏览器捕获事件,
9
+ 并非WebDriver用于其他API的传统请求/响应方法.
10
+
11
+ WebDriver将在内部创建针对浏览器的WebSocket连接,
12
+ 用于传输事件和命令.
13
+
14
+ 随着Selenium项目更多地用于实际案例, 相应的API列表将不断扩充.
15
+ 如果缺少API, 请提出[ 功能请求] ( https://github.com/SeleniumHQ/selenium/issues/new?assignees=&labels=&template=feature.md ) .
16
+
17
+ ## 变化监测
18
+
19
+ 变化监测是一种能力,
20
+ 用于当特定元素的DOM发生变化时,
21
+ 得以通过WebDriver BiDi捕获事件.
30
22
31
23
{{< code-tab >}}
32
24
{{< code-panel language="java" >}}
0 commit comments