solidusio-contrib / solidus_static_content

:page_facing_up: Content management for your Solidus store.
BSD 3-Clause "New" or "Revised" License
21 stars 40 forks source link

Scroll Update button into view before clicking #76

Closed jarednorman closed 3 years ago

jarednorman commented 3 years ago

It seems there's some weird behaviour in more recent versions of Chrome where attempting to click things with Selenium that aren't scrolled into view errors out with:

element not interactable: element has zero size

This Stack Overflow answer explains the situation, but the solution is simple, just scroll the viewport to the thing before clicking.