File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Framework/Built_In_Automation/Web/Selenium Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -843,6 +843,13 @@ def firefoxheadless():
843843 apps = "application/pdf;text/plain;application/text;text/xml;application/xml;application/xlsx;application/csv;application/zip"
844844 profile .set_preference ("browser.helperApps.neverAsk.saveToDisk" , apps )
845845 profile .accept_untrusted_certs = True
846+
847+ options .set_preference ("browser.download.folderList" , 2 )
848+ options .set_preference ("browser.download.manager.showWhenStarting" , False )
849+ options .set_preference ("browser.download.dir" , download_dir )
850+ options .set_preference ("browser.helperApps.neverAsk.saveToDisk" , apps )
851+ options .accept_untrusted_certs = True
852+
846853 if (remote_host ):
847854 capabilities = webdriver .DesiredCapabilities ().FIREFOX
848855 capabilities ['acceptSslCerts' ] = True
You can’t perform that action at this time.
0 commit comments