Skip to content

Commit f966c69

Browse files
alaahongdiemol
andauthored
Add Chinese translation of "mouse_and_keyboard_actions_in_detail" (#266)
- support_packages/mouse_and_keyboard_actions_in_detail.zh-cn.md Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent 6834e27 commit f966c69

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

docs_source_files/content/support_packages/mouse_and_keyboard_actions_in_detail.zh-cn.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@ title: "鼠标动作详细信息"
33
weight: 4
44
---
55

6-
{{% notice info %}}
7-
<i class="fas fa-language"></i> 页面需要从英语翻译为简体中文。
8-
您熟悉英语与简体中文吗?帮助我们翻译它,通过 pull requests 给我们!
9-
{{% /notice %}}
10-
11-
Mouse represents a mouse event. Mouse actions are performed
12-
by using low-level interface which allows us to
13-
provide virtualized device input action to the web browser.
6+
Mouse表示鼠标事件. 鼠标操作是通过使用底层接口执行的, 其允许我们向Web浏览器提供虚拟化的设备输入操作.
147

158
## clickAndHold
169

17-
It will move to the element and clicks (without releasing) in the middle of the given element.
10+
它将移动到该元素,然后在给定元素的中间单击(不释放).
1811

1912
{{< code-tab >}}
2013
{{< code-panel language="java" >}}
@@ -142,7 +135,8 @@ fun main() {
142135
{{< / code-tab >}}
143136

144137
## contextClick
145-
This method firstly performs a mouse-move to the location of the element and performs the context-click (right click) on the given element.
138+
139+
此方法首先将鼠标移动到元素的位置, 然后在给定元素执行上下文点击(右键单击).
146140

147141
{{< code-tab >}}
148142
{{< code-panel language="java" >}}
@@ -270,7 +264,7 @@ fun main() {
270264
{{< / code-tab >}}
271265

272266
## doubleClick
273-
It will move to the element and performs a double-click in the middle of the given element.
267+
它将移动到该元素, 并在给定元素的中间双击.
274268

275269
{{< code-tab >}}
276270
{{< code-panel language="java" >}}
@@ -398,7 +392,7 @@ fun main() {
398392
{{< / code-tab >}}
399393

400394
## moveToElement
401-
This method moves the mouse to the middle of the element. The element is also scrolled into the view on performing this action.
395+
此方法将鼠标移到元素的中间. 执行此操作时, 该元素也会滚动到视图中.
402396

403397
{{< code-tab >}}
404398
{{< code-panel language="java" >}}
@@ -527,7 +521,7 @@ fun main() {
527521

528522
## moveByOffset:
529523

530-
This method moves the mouse from its current position (or 0,0) by the given offset. If the coordinates are outside the view window, then the mouse will end up outside the browser window.
524+
此方法将鼠标从其当前位置(或0,0)移动给定的偏移量. 如果坐标在视图窗口之外, 则鼠标最终将在浏览器窗口之外.
531525

532526
{{< code-tab >}}
533527
{{< code-panel language="java" >}}
@@ -674,8 +668,7 @@ fun main() {
674668

675669
## dragAndDrop
676670

677-
This method firstly performs a click-and-hold on the source element,
678-
moves to the location of the target element and then releases the mouse.
671+
此方法首先在源元素上单击并按住,然后移动到目标元素的位置后释放鼠标.
679672

680673
{{< code-tab >}}
681674
{{< code-panel language="java" >}}
@@ -814,7 +807,7 @@ fun main() {
814807

815808
## dragAndDropBy
816809

817-
This method firstly performs a click-and-hold on the source element, moves to the given offset and then releases the mouse.
810+
此方法首先在源元素上单击并按住, 移至给定的偏移量后释放鼠标.
818811

819812
{{< code-tab >}}
820813
{{< code-panel language="java" >}}
@@ -967,8 +960,7 @@ fun main() {
967960

968961
## release
969962

970-
This action releases the depressed left mouse button. If WebElement is passed,
971-
it will release depressed left mouse button on the given WebElement
963+
此操作将释放按下的鼠标左键. 如果WebElement转移了, 它将释放给定WebElement上按下的鼠标左键.
972964

973965
{{< code-tab >}}
974966
{{< code-panel language="java" >}}

0 commit comments

Comments
 (0)