currently we faced one issue in automation like buttons were not clickable due to chome download bar was overlapping on buttons.
we googled lot of keywords like “disable-infobars chrome selenium, chromedriver disable-infobars not working, disable download bar chrome, How to disable infobar in Chrome browser in Selenium”.
tried below things,
- MoveToElement method of action class, but no luck.
used scrollintoviewmethod and worked finally. 🙂
WebElement webElement = driver.findElement(By.id("id_of_element")); ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", webElement);