Skip to content

[🐛 Bug]: Actions API moveByOffset is not clear on the directions of movement with the X,Y input arguments #1087

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

Closed
jamesmortensen opened this issue Jul 28, 2022 · 1 comment · Fixed by #1092
Labels
bug Something isn't working needs-triaging

Comments

@jamesmortensen
Copy link
Member

What happened?

I had a lot of confusion when I was first learning to use moveByOffset. To fully understand, I did a series of small experiments to understand how the movement around the screen occurs. I now understand that a positive X value moves the mouse to the right of its current position, while a positive Y value moves down.

To make it more clear, I propose adding the following note:

Note that the first argument X specifies to move right when positive, while the second argument Y specifies
to move down when positive. So moveByOffset(30, -10) moves right 30 and up 10 from the current mouse position.

as well as:

Rules:
- positive X moves right
- positive Y moves down.
- negative X moves left.
- negative Y moves up.

What browsers and operating systems are you seeing the problem on?

I was using Chrome latest version, and Mac OS M1.

@jamesmortensen jamesmortensen added bug Something isn't working needs-triaging labels Jul 28, 2022
jamesmortensen added a commit to jamesmortensen/seleniumhq.github.io that referenced this issue Jul 28, 2022
diemol pushed a commit that referenced this issue Jul 28, 2022
…the mouse moves (#1092)

* Added more details on moveByOffset to make it clear which directions X and Y move the mouse. Issue #1087

* Added the text to the other language files.

Co-authored-by: Diego Molina <[email protected]>

[deploy site]
selenium-ci added a commit that referenced this issue Jul 28, 2022
…the mouse moves (#1092)

* Added more details on moveByOffset to make it clear which directions X and Y move the mouse. Issue #1087

* Added the text to the other language files.

Co-authored-by: Diego Molina <[email protected]>

[deploy site] 93b32c8
diemol pushed a commit that referenced this issue Aug 24, 2022
…1138)

* Added more details on moveByOffset to make it clear which directions X and Y move the mouse. Issue #1087

* Added the text to the other language files.

* Initial add dev and beta blog post article

* initial content

* Shortened title and modified content to use consistent language and capitalization. Renamed markdown file to reflect the title change.

* Update website_and_docs/content/blog/2022/dev-and-beta-channel-browsers-via-docker-selenium.md

Co-authored-by: Diego Molina <[email protected]>

* Update website_and_docs/content/blog/2022/dev-and-beta-channel-browsers-via-docker-selenium.md

Co-authored-by: Diego Molina <[email protected]>

Co-authored-by: Diego Molina <[email protected]>

[deploy site]
selenium-ci added a commit that referenced this issue Aug 24, 2022
…1138)

* Added more details on moveByOffset to make it clear which directions X and Y move the mouse. Issue #1087

* Added the text to the other language files.

* Initial add dev and beta blog post article

* initial content

* Shortened title and modified content to use consistent language and capitalization. Renamed markdown file to reflect the title change.

* Update website_and_docs/content/blog/2022/dev-and-beta-channel-browsers-via-docker-selenium.md

Co-authored-by: Diego Molina <[email protected]>

* Update website_and_docs/content/blog/2022/dev-and-beta-channel-browsers-via-docker-selenium.md

Co-authored-by: Diego Molina <[email protected]>

Co-authored-by: Diego Molina <[email protected]>

[deploy site] 6414d83
diemol pushed a commit that referenced this issue Aug 25, 2022
…esters" (#1146)

* Added more details on moveByOffset to make it clear which directions X and Y move the mouse. Issue #1087

* Added the text to the other language files.

* Initial add dev and beta blog post article

* initial content

* Shortened title and modified content to use consistent language and capitalization. Renamed markdown file to reflect the title change.

* Update website_and_docs/content/blog/2022/dev-and-beta-channel-browsers-via-docker-selenium.md

Co-authored-by: Diego Molina <[email protected]>

* Update website_and_docs/content/blog/2022/dev-and-beta-channel-browsers-via-docker-selenium.md

Co-authored-by: Diego Molina <[email protected]>

* Changed another reference of QA Team to developers and testers

Co-authored-by: Diego Molina <[email protected]>

[deploy site]
selenium-ci added a commit that referenced this issue Aug 25, 2022
…esters" (#1146)

* Added more details on moveByOffset to make it clear which directions X and Y move the mouse. Issue #1087

* Added the text to the other language files.

* Initial add dev and beta blog post article

* initial content

* Shortened title and modified content to use consistent language and capitalization. Renamed markdown file to reflect the title change.

* Update website_and_docs/content/blog/2022/dev-and-beta-channel-browsers-via-docker-selenium.md

Co-authored-by: Diego Molina <[email protected]>

* Update website_and_docs/content/blog/2022/dev-and-beta-channel-browsers-via-docker-selenium.md

Co-authored-by: Diego Molina <[email protected]>

* Changed another reference of QA Team to developers and testers

Co-authored-by: Diego Molina <[email protected]>

[deploy site] c0130d5
@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs-triaging
Projects
None yet
1 participant