diff --git a/chains/cerberus_web_client.py b/chains/cerberus_web_client.py index 878b3ca..19e397d 100644 --- a/chains/cerberus_web_client.py +++ b/chains/cerberus_web_client.py @@ -28,7 +28,7 @@ class CerberusWebClient(SupermarketChain): def set_browser_options(self) -> webdriver.ChromeOptions: options = webdriver.ChromeOptions() - options.set_capability("download.default_directory", f"{os.path.abspath(os.path.curdir)}/raw_files") + options.add_experimental_option("prefs",{"download.default_directory": self.download_dir}) options.add_argument("ignore-certificate-errors") options.add_argument("--ignore-ssl-errors=yes") options.headless = self.is_system_headless()