- As a user
- When I go to a page
- Then there is an element that scrolls down into view
There is a link
I want to click
on that element.
Sometimes it will work but how do I wait for it to finish scrolling down and then click
on the element?
Thread.sleep(1000)
works but I want to know is there a better approach?
Tools I am using:
Java
Selenium