Skip to content
This repository has been archived by the owner. It is now read-only.

Errors running test on start kit #193

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

Errors running test on start kit #193

dawuzi opened this issue Jul 17, 2018 · 5 comments

Comments

@dawuzi
Copy link

@dawuzi dawuzi 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
Copy link
Contributor

@notwaldorf notwaldorf 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
Copy link
Author

@dawuzi dawuzi 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
Copy link
Author

@dawuzi dawuzi 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
Copy link

@johnthad johnthad 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
Copy link

@comlaterra comlaterra 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants