Skip to content

Added more details on moveByOffset to make it clear which directions the mouse moves #1092

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 3 commits into from
Jul 28, 2022

Conversation

jamesmortensen
Copy link
Member

@jamesmortensen jamesmortensen commented Jul 28, 2022

Fixes #1087

I felt the documentation for moveByOffset wasn't clear in terms of how the mouse moves based on X and Y inputs. So I propose this change to make it clear how a positive X and a positive Y moves the mouse pointer.

Description

This is a simple addition to the moveByOffset documentation.

Motivation and Context

I myself experienced some confusion on this. I incorrectly assumed a positive Y would move the mouse up. But after experimenting I realized a positive Y moves the mouse down. So I documented that in this PR. I have also seen other QA engineers struggle with the mouse portion of the Actions API. I hope these changes will make it more clear.

Types of changes

  • Change to the site (I have double-checked the Netlify deployment, and my changes look good)
  • Code example added (and I also added the example to all translated languages)
  • Improved translation
  • Added new translation (and I also added a notice to each document missing translation)

Checklist

  • [ X] I have read the contributing document.
  • [ X] I have used hugo to render the site/docs locally and I am sure it works.

Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add this to the other mouse.*.md files?

Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @jamesmortensen!

@diemol diemol merged commit 93b32c8 into SeleniumHQ:trunk Jul 28, 2022
selenium-ci added a commit that referenced this pull request 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
@netlify
Copy link

netlify bot commented Jul 28, 2022

Deploy Preview for jovial-austin-42fe02 ready!

Name Link
🔨 Latest commit 9766f65
🔍 Latest deploy log https://app.netlify.com/sites/jovial-austin-42fe02/deploys/62e253cb4883d200081ed0d0
😎 Deploy Preview https://deploy-preview-1092--jovial-austin-42fe02.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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