how to scroll to specific element code example
Example: how to scroll specific element
1- Actions moveToElement method to
scroll down to specific web elements.
Do you know any other way to scroll?
2- We can use JSExecutor.executescript
method to scrool up and down, or left and right.
JSExecutor --> executeScript --> scrollBy(0,250);
JSExecutor --> executeScript --> scrollIntoView(true),
WebElementWeWantToScroll;