Is there a way to customize Safari options similar to Firefox, but I'm having trouble with handling download pop-ups in my test. Any suggestions? Thank you
"safari": {
"downloadFolder": "Users/chef/Downloads/",
"desiredCapabilities": {
"browserName": "Safari",
'safari:safariOptions': {
prefs: {
'safari.options.dataDir':'Users/chef/Downloads/',
'safari.helperApps.neverAsk.saveToDisk':'image/jpeg;application/binary;application/pdf;text/plain;application/text;text/xml;application/xml;text/html;text/csv;video/mp4'
},
}
}
}
I came across some related posts that could provide more insight
- How to handle file download for Selenium WebDriver for Safari
- How to set Safari download location - Selenium WebDriver