Skip to content
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

Fix description of move_to_element_with_offset #11402

Merged
merged 1 commit into from Dec 16, 2022
Merged

Fix description of move_to_element_with_offset #11402

merged 1 commit into from Dec 16, 2022

Conversation

j3soon
Copy link
Contributor

@j3soon j3soon commented Dec 9, 2022

Fix the function comments according to the w3c spec:

https://w3c.github.io/webdriver/#dfn-dispatch-a-pointermove-action

Fixes #10261

Description

This commit fixes the incorrect function description of move_to_element_with_offset, which has caused confusion in issue #10261.

Motivation and Context

The current code behaves correctly (following w3c spec), but the comment is incorrect.

Documentation fix: SeleniumHQ/seleniumhq.github.io#1259

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@j3soon j3soon requested a review from symonk December 12, 2022 21:41
@titusfortner titusfortner merged commit 5e06ee8 into SeleniumHQ:trunk Dec 16, 2022
@j3soon j3soon deleted the hotfix/10261 branch December 16, 2022 06:03
lhelwerd added a commit to grip-on-software/visualization-site that referenced this pull request Jun 1, 2023
- Upgrade Python to 3.9 now that cffi provides musllinux packages
- Upgrade Selenium standalone Chrome to 4.8.1 for newer ESM support
- Run tests in verbose mode and update one Selenium import
- Update find_elements?_by_.*(...) calls to find_elements?(By..., ...)
  since SeleniumHQ/selenium#10712
- Close driver during teardown even when there is no result outcome, to
  avoid keeping connections open for too long
- Add remote connection timeout to detect connection issues earlier per
  SeleniumHQ/selenium#11596
- Remove some Python 2 import attempt
- Axe report: Do not exit out if file does not exist
- Adjust move_to_element_with_offset calls to work in center element,
  based on SeleniumHQ/selenium#11402
- Quit driver and set to None at teardown. This should properly close
  the session, allowing the connection to be reused for another test.
- Update browser-sync
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]: move_to_element_with_offset(element, 0, 0) is clicking at the middle of the element.
3 participants