Disable smooth scroll Firefox-Selenium

418 views Asked by At

I want to disable Smooth Scrolling of any page for testing purposes for firefox, I want the exact same behavior as this --disable-smooth-scrolling=true chrome's argument. With that argument, chrome basically does the scrollIntoView() instant, instead of auto.

Why do I want to disable it? Well because selenium-w3c is not waiting long enough for the animation to finish, causing ElementNotInteractableException or ClickInterceptedException.

I tried disabling a bunch of preferences, including all the settings that have "smoothScroll" in it, but no luck so far. No preference I change seems to affect firefox in any way. I have a lot of workarounds for this, but the best solution would be to disable it entirely.

Edit:

RESOLVED, I created a simple add on to override scroll-behavior from CSS.

0

There are 0 answers