Skip to content

Commit e47cfd8

Browse files
committed
add back experimental download
1 parent 0d946ad commit e47cfd8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dash/testing/browser.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,17 @@ def _get_chrome(self):
485485
if "DASH_TEST_CHROMEPATH" in os.environ:
486486
options.binary_location = os.environ["DASH_TEST_CHROMEPATH"]
487487

488+
options.add_experimental_option(
489+
"prefs",
490+
{
491+
"download.default_directory": self.download_path,
492+
"download.prompt_for_download": False,
493+
"download.directory_upgrade": True,
494+
"safebrowsing.enabled": False,
495+
"safebrowsing.disable_download_protection": True,
496+
},
497+
)
498+
488499
options.add_argument("--disable-dev-shm-usage")
489500
options.add_argument("--no-sandbox")
490501
options.add_argument("--disable-gpu")

0 commit comments

Comments
 (0)