What is the difference between the different scroll options?

Element.scrollIntoView() Element.scrollIntoView() method scrolls the element on which it’s called into the Viewport of the browser window. Syntax: element.scrollIntoView() element.scrollIntoView(alignToTop) // Boolean parameter element.scrollIntoView(scrollIntoViewOptions) // Object parameter Your usecases: executeScript(“arguments[0].scrollIntoView();”, Element): This line of code will scroll the element into the visible area of the browser window. executeScript(“arguments[0].scrollIntoView(true);”, element1): This line of code will scroll … Read more