Identifying Chrome download box


I am recording a test which involves downloading a file from a webpage in Chrome.
When the button for download is selected, a dialog box from Chrome comes up asking if I want to keep or discard the file, the box is not identifiable by Katalon recorder and I have tried to identify it with object spy.

Can someone advise on how i can proceed with this?


Hi Zak,

This is more advanced solution, but you can change your Chrome preferences to download files without a prompt (it means automatically). For this purposes, I use following method instead of WebUI.openBrowser(String page)

public class CustomChromeDriver {

public static void createChromeWebDriverCustomDownload(String downloadPath) {
	String projDir = RunConfiguration.getProjectDir()
        // add Chrome preferences
	HashMap<String, Object> chromePrefs = new HashMap<String, Object>()
	chromePrefs.put("download.default_directory", downloadPath)
	chromePrefs.put("download.prompt_for_download", false)
        // specify path to ChromeDriver
	System.setProperty("", projDir + "\\Files\\chromedriver.exe")
	ChromeOptions options = new ChromeOptions()
	options.setExperimentalOption("prefs", chromePrefs)

        // create web driver
	WebDriver driver = new ChromeDriver(options)
        // use your driver instead of default one

You can also specify your own download path in method parameter.

Sample usage in test case:



// the rest of your test


Hi Marek, I will try both suggestions and see how they work.
Thank you!