Hacker News new | ask | show | jobs
by kenz0r 3947 days ago
Selenium is great for this. For this particular case, it won't access an element unless its visible, so you can validate that the scroll happens on button press. Easy to make a quick smoke test that can run in a few browsers
1 comments

While this is a technically true statement Selenium is neither easy to setup nor easy to learn. It's documentation (of at least the libraries I've used, which were the recommended ones) was atrocious and not at all consistent.