GoogleChromeLabs / selenium-assistant

A node module that helps using browsers with selenium
https://googlechromelabs.github.io/selenium-assistant/
Apache License 2.0
90 stars 26 forks source link

Travis's OS X tests need permission to automate Safari #118

Closed jeffposnick closed 5 years ago

jeffposnick commented 5 years ago

We currently have Travis CI set up to run on OS X, which should be helpful as a way of running the Safari-based tests.

However, Apple locks down Safari by default, so that you can't use webdriver with it until you explicitly select a menu item to enable it.

This is obviously not possible to do directly in the Travis environment.

This Stack Overflow question has some suggestions:

sudo /usr/bin/safaridriver --enable
sudo defaults write com.apple.Safari AllowRemoteAutomation 1

They seem to work, at least in the version of OS X that's currently being used by Travis CI, though the SO response indicates that Apple may have locked things down further in later releases.