In this article, we will cover how to scroll down or up a page in selenium.
I need to validate the element, which is not visible on the screen, if I use a scrollbar, I can be able to view that element on my page.
How can I automate to scroll the page to view the element I am looking for?
ScrollIntoView moves the scroll bar to the top whereas boolean condition false moves it to the bottom.
We can also scroll using pixel
Here is the syntax for that,
Suppose in the case of scrolling down to the bottom of the page,