To run Safari on macOS, some manual setup is required:
Allow Safari to be controlled by SafariDriver:
Allow pop-up windows:
Turn on experimental features that are “off” by default:
defaults write com.apple.Safari ExperimentalServerTimingEnabled -bool true
Trust the certificate:
security add-trusted-cert -k "$(security default-keychain | cut -d\" -f2)" tools/certs/cacert.pem
no_proxy='*'in 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 --channel=preview safari [test_list]