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

Handle multiple positions for click #592

Open
adeprez opened this issue Aug 27, 2024 · 0 comments
Open

Handle multiple positions for click #592

adeprez opened this issue Aug 27, 2024 · 0 comments
Assignees

Comments

@adeprez
Copy link
Contributor

adeprez commented Aug 27, 2024

Certain inline elements and partially visible elements become unclickable when their bounding box center is not accessible for click.

Case 1 : Inline elements:

When an element is inline (e.g., a paragraph that begins on one line and ends on the next line, with no text in the middle), the center of its bounding box might fall in an empty area. In such cases, clicking the element becomes problematic, as the center point is not a clickable area.

Case 2 : Partially visible elements:

When an element is partially visible (e.g. covered by something else), but one of its corners remains clickable.

To handle that, we should

  • update the JS_GET_INTERACTIVES_IN_VIEWPORT method to check for center and 4 corners
  • update the Selenium click action to try the center then 4 corner positions when a captured click exception is raised
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

No branches or pull requests

2 participants