I use headless chrome and selenium but i have problem in downloading file. Using options:
prefs = {"download.default_directory": dr,
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"safebrowsing.enabled": True
}
options.add_experimental_option("prefs", prefs)
If headless chrome not used then file download successfully but if headless works then nothing actions. How i can solve it?