How to disable download bar of chrome in selenium

By | January 14, 2021

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,

  1. MoveToElement method of action class, but no luck.

used scrollintoviewmethod and worked finally. 🙂

WebElement webElement = driver.findElement("id_of_element"));
((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", webElement);