Skip to content

Incorrect Element.scrollWidth property value  #263

@ljg2gb

Description

@ljg2gb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions