Skip to content

Update Chinese translation of "bidi_apis.zh-cn.md" #641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 16 additions & 24 deletions docs_source_files/content/webdriver/bidi_apis.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,22 @@ title: "WebDriver Bidi APIs"
weight: 3
---

{{% notice %}}
<i class="fas fa-language"></i> Page being translated from
English to Simplified Chinese. Do you speak Simplified? Help us to translate
it by sending us pull requests!
{{% /notice %}}

In Selenium 4, new Evented APIs were introduced that
allow users to be able to capture events from the
browser as they happen rather than using the
traditional approach of Request/Response that
WebDriver has used for other APIs.

Internally WebDriver will create a WebSocket connection
to the browser for events and commands to be transmitted.

The following list of APIs will be growing as the Selenium
project works through supporting real world use cases. If there
is a missing API, please raise a [feature request](https://github.com/SeleniumHQ/selenium/issues/new?assignees=&labels=&template=feature.md).

## Mutation Observation

Mutation Observation is the ability to capture events via
WebDriver BiDi when there are DOM mutations on a specific
element in the DOM.

在Selenium 4中, 引入了新的事件API,
使用户能够在事件发生时从浏览器捕获事件,
并非WebDriver用于其他API的传统请求/响应方法.

WebDriver将在内部创建针对浏览器的WebSocket连接,
用于传输事件和命令.

随着Selenium项目更多地用于实际案例, 相应的API列表将不断扩充.
如果缺少API, 请提出[功能请求](https://github.com/SeleniumHQ/selenium/issues/new?assignees=&labels=&template=feature.md).

## 变化监测

变化监测是一种能力,
用于当特定元素的DOM发生变化时,
得以通过WebDriver BiDi捕获事件.

{{< code-tab >}}
{{< code-panel language="java" >}}
Expand Down