- get/set/clear cookies by domain
- screenshot page
- record video of page (this can be done via getUserMedia api if it supports capturing the browser tab, which we do in firefox)
- a way to set a proxy server for all network traffic
- bypass the invalid ssl cert screen/prompt
- It is not possible to pass any command line arguments to Safari.
- Using Isolated Test Automation window, it disallows interaction with the window which is a major problem for how cypress works, at least for interactive mode.
use AppleScript to automate Safari
disable ssl check via console/ bookmarklet
get/set/clear cookies by domain
It sounds like you need to get/set/clear cookies for domains other than the one currently loaded, is that right? It looks like the only way of doing that using WebDriver/safaridriver would be to load a page from that domain and then use the endpoints with an implicit domain, but that's not great.
record video of page
I don't think this is possible, but I did have fun recording the whole macOS VM in Azure Pipelines using screencapture once. One can also record a specific window, but I presume you want the content area without decorations.
a way to set a proxy server for all network traffic
I'm pretty sure this is not possible yet.
a way to bypass the invalid ssl cert screen/prompt
I wouldn't be surprised if this is already possible with some setting or command line argument, but I don't know what it is. Our setup for web-platform-tests is a bit special, we update /etc/hosts and add a certificate to the system certificate store. It's a bit much, and also requires that you know what the domains under test are before you start the tests, which is probably not the case for Cypress.
- Could we use an extension for some of the tasks?
- apple safari web extensions
- how to build
"These isolated sessions also help to ensure that tests are unaffected by a previous test session’s persistent state." isolated automation windows
- Selenium accept SSL certs - is this relevant for Safari?
- cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
- simulator add cert
- acceptInsecureCerts not honored
- Use self-signed cert in cypress and add to trusted certs in Safari