Reputation: 51
OS: macOS Sierra
Browser: Safari v11.0.3
Problem: Cannot launch safaridriver even though safaridriver --enable has been run.
Error
'safaridriver could not launch because it is not configured correctly or you need to authenticate. Re-run safaridriver(1) and pass the '--enable' flag to configure and/or authenticate. For more information, consult the safaridriver(1) man page.'
Error Log
qa01:~ svctest$ safaridriver --enable
Password:
qa01:~ svctest$ safaridriver -p 0
ERROR: safaridriver could not launch because it is not configured
correctly or you need to authenticate. Re-run safaridriver(1) and
pass the '--enable' flag to configure and/or authenticate.
For more information, consult the safaridriver(1) man page.
qa01:~ svctest$
Upvotes: 1
Views: 6197
Reputation: 815
Many bugs have been fixed in safaridriver --enable
since this question was asked, including fixes for running under sudo. Please close the question.
Upvotes: 1
Reputation: 1
This works for me:
sudo -u <your user> safaridriver --enable
After that you can see in Safari menu Develop->Allow Remote Automation
is checked
Upvotes: 0
Reputation: 51
The issue is the logged in account privileges. Even though an admin password was used to enable the Safari driver the logged in account was not an admin.
Upvotes: 0
Reputation: 596
you need to run it as a superuser, that will correctly save new configuration:
sudo safaridriver --enable
Upvotes: 3