Skip to content

Commit 93b32c8

Browse files
Added more details on moveByOffset to make it clear which directions the mouse moves (SeleniumHQ#1092)
* Added more details on moveByOffset to make it clear which directions X and Y move the mouse. Issue SeleniumHQ#1087 * Added the text to the other language files. Co-authored-by: Diego Molina <[email protected]> [deploy site]
1 parent e9323eb commit 93b32c8

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

website_and_docs/content/documentation/webdriver/actions_api/mouse.en.md

+4
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ If the mouse has not previously been moved, the position will be in the upper le
310310
corner of the viewport.
311311
Note that the pointer position does not change when the page is scrolled.
312312

313+
Note that the first argument X specifies to move right when positive, while the second argument
314+
Y specifies to move down when positive. So `moveByOffset(30, -10)` moves right 30 and up 10 from
315+
the current mouse position.
316+
313317
{{< tabpane disableCodeBlock=true height="3" >}}
314318
{{< tab header="Java" >}}
315319
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L153-L155" >}}

website_and_docs/content/documentation/webdriver/actions_api/mouse.ja.md

+4
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ If the mouse has not previously been moved, the position will be in the upper le
310310
corner of the viewport.
311311
Note that the pointer position does not change when the page is scrolled.
312312

313+
Note that the first argument X specifies to move right when positive, while the second argument
314+
Y specifies to move down when positive. So `moveByOffset(30, -10)` moves right 30 and up 10 from
315+
the current mouse position.
316+
313317
{{< tabpane disableCodeBlock=true height="3" >}}
314318
{{< tab header="Java" >}}
315319
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L153-L155" >}}

website_and_docs/content/documentation/webdriver/actions_api/mouse.pt-br.md

+4
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ If the mouse has not previously been moved, the position will be in the upper le
310310
corner of the viewport.
311311
Note that the pointer position does not change when the page is scrolled.
312312

313+
Note that the first argument X specifies to move right when positive, while the second argument
314+
Y specifies to move down when positive. So `moveByOffset(30, -10)` moves right 30 and up 10 from
315+
the current mouse position.
316+
313317
{{< tabpane disableCodeBlock=true height="3" >}}
314318
{{< tab header="Java" >}}
315319
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L153-L155" >}}

website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md

+4
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ If the mouse has not previously been moved, the position will be in the upper le
310310
corner of the viewport.
311311
Note that the pointer position does not change when the page is scrolled.
312312

313+
Note that the first argument X specifies to move right when positive, while the second argument
314+
Y specifies to move down when positive. So `moveByOffset(30, -10)` moves right 30 and up 10 from
315+
the current mouse position.
316+
313317
{{< tabpane disableCodeBlock=true height="3" >}}
314318
{{< tab header="Java" >}}
315319
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/actions_api/MouseTest.java#L153-L155" >}}

0 commit comments

Comments
 (0)