How to perform a scroll in a drop down list to hidden element?
I have solved it by this way :
// Create instance of Javascript executorJavascriptExecutor je = (JavascriptExecutor) driver;//Identify the WebElement which will appear after scrolling downWebElement element = driver.findElement(By.tagName("...."));// now execute query which actually will scroll until that element is not appeared on page.je.executeScript("arguments[0].scrollIntoView(true);",element);
Try following code.
browser.executeScript('window.scrollTo(0,0);').then(function () { page.saveButton.click();})
Hope this helps. :)