def set_chrome_options(dldir): """ Sets specific Chrome O...

A public project built with the Lightcap AI agent by anon-58f5 — open to read, run, fork, and export. Updated .

Prompt

def set_chrome_options(dldir): """ Sets specific Chrome Options to pass to Robot. See in-line comments for more. """

options = webdriver.ChromeOptions() #options.add_argument('--headless=new') #options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') options.add_argument("--start-maximized") options.add_argument("--disable-infobars")

how o unblock mutiplr files dpopup

Lightcap

add prefs dict to options set download.default_directory to dldir set download.prompt_for_download false set profile.default_content_setting_values.automatic_downloads 1 then call options.add_experimental_option('prefs', prefs) before returning options the new set_chrome_options.py already has those lines using set_chrome_options(your_path) will stop the multiple file download popup and download automatically

Browse all public projects

Lightcap