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

Incorrect Element.scrollWidth property value #263

Open
ljg2gb opened this issue Apr 15, 2024 · 0 comments
Open

Incorrect Element.scrollWidth property value #263

ljg2gb opened this issue Apr 15, 2024 · 0 comments

Comments

@ljg2gb
Copy link

ljg2gb commented Apr 15, 2024

There appears to be an issue with element.scrollWidth in Cuprite. I have an element with a scrollWidth that is wider than it's clientWidth. which you can see in the DOM screenshot below. However, it appears that Cuprite sets the scrollWidth to be equal to the pageWidth (see console.logs). I am able to work around the issue right now in my system test by clicking on an element inside of the scrollable element. For some reason interacting with the element this way updates the scrollWidth property in the test to be equal to the value that I get from finding the element.scrollWidth in the DOM.
Screenshot 2024-04-15 at 12 41 45 PM

For more context, we are running
Cuprite v0.15
Ferrum v0.14
Capybara v3.40.0

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

1 participant