How to assign a folder to chrome browser

In selenium, normally we assign a folder to the browser preferences, same as how to do this in UI Path ?

 def __get_chrome_driver(self, download_dir):
        chrome_options = webdriver.ChromeOptions()
        prefs = {"download.default_directory": download_dir}
        chrome_options.add_experimental_option("prefs", prefs)

        return webdriver.Chrome(executable_path=Config.PATH_TO_CHROME_DRIVER, chrome_options=chrome_options)
1 Like

You can manually change the download path for that particular browser or you can use the move file activity to move the downloaded file to the required location,