cuprite icon indicating copy to clipboard operation
cuprite copied to clipboard

Incorrect Element.scrollWidth property value

Open ljg2gb opened this issue 1 year ago • 0 comments

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

ljg2gb avatar Apr 15 '24 20:04 ljg2gb