Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors running test on start kit #193

Closed
dawuzi opened this issue Jul 17, 2018 · 5 comments

Comments

Projects
None yet
5 participants
@dawuzi
Copy link

commented Jul 17, 2018

So I cloned the start kit and ran npm test but I get the error I have attached with this issue. I ran the npm test again after running npm run test:regenerate_screenshots but the error persists
error.txt

@notwaldorf

This comment has been minimized.

Copy link
Member

commented Jul 17, 2018

The error says:

org.openqa.selenium.SessionNotCreatedException: Could not create a session: You must enable the 'Allow Remote Automation' option in Safari's Develop menu to control Safari via WebDriver.

You need to follow these instructions to enable that: https://webkit.org/blog/6900/webdriver-support-in-safari-10/

@dawuzi

This comment has been minimized.

Copy link
Author

commented Jul 18, 2018

Hi @notwaldorf So I have taken the three steps highlighted in the Running the Example in Safari section of the link you shared and re ran the tests. The error still persists. I am running MacOS High Sierra.

@dawuzi

This comment has been minimized.

Copy link
Author

commented Jul 18, 2018

Ok I just stumbled on a link that shows the command that solves the problem. I ran this command defaults write com.apple.Safari IncludeDevelopMenu YES as suggested in this link https://stackoverflow.com/questions/41629592/macos-sierra-how-to-enable-allow-remote-automation-using-command-line and the tests now run successfully

Thanks a lot

@johnthad

This comment has been minimized.

Copy link

commented Jul 18, 2018

Note that if/when you upgrade Safari 10 to Safari 11, and the WebDriver extension remains installed, you must uninstall it for the tests to run. At least that was my experience.

@frankiefu frankiefu closed this Jul 19, 2018

@comlaterra

This comment has been minimized.

Copy link

commented Feb 4, 2019

Just in case:
Make sure to have the option Develop -> Allow remote automation selected in the Safari you are trying to test on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.