kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

scrollIntoView is scrolling too far on websites with large horizontal headers #115

Closed kgress closed 2 years ago

kgress commented 2 years ago

Bug

scrollIntoView() by default will scroll an element to the top of the page. However, on some sites with large horizontal headers, the element will scroll behind the header, causing click interception issues.

Expected

Scrolling elements into view should scroll the elements in a way that doesn't cause interception issues. Perhaps we could scroll to center?