cuprite
cuprite copied to clipboard
Incorrect Element.scrollWidth property value
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.
For more context, we are running Cuprite v0.15 Ferrum v0.14 Capybara v3.40.0