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: correctly account for position and scroll values of webviews #1378

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

jlipps
Copy link
Member

@jlipps jlipps commented Mar 4, 2024

This PR fixes two things:

  1. On iOS, webviews that didn't occupy the full screen (as in Safari) were not previously considered.
  2. On both platforms, window.scrollX and window.scrollY were also not considered, which are necessary when thinking about the positions of web elements on the screen (web element position is absolute, not viewport relative as mobile elements are).

@github-actions github-actions bot added the fix This resolves a user-facing problem label Mar 4, 2024
Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

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

Tested a few with a webview app. Looks good to me once the ci passes

@jlipps jlipps merged commit 3863310 into main Mar 5, 2024
6 checks passed
@jlipps jlipps deleted the jlipps/webview-offset branch March 5, 2024 18:35
laib3 pushed a commit to laib3/appium-inspector that referenced this pull request Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix This resolves a user-facing problem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants