To run Safari on macOS, some manual setup is required:
Allow Safari to be controlled by SafariDriver:
Allow pop-up windows:
Trust the certificate:
security add-trusted-cert -k "$(security default-keychain | cut -d\" -f2)" tools/certs/cacert.pem
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YESin your environment. This is a workaround for a known macOS High Sierra issue.
Now, run the tests using the
./wpt run safari [test_list]
This will use the
safaridriver found on the path, which will be stable Safari.
To run Safari Technology Preview instead, use the
./wpt run --webdriver-binary "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" safari [test_list]