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

WebDriver not working in mojave-base when it worked in high-sierra-base #14

Closed
KronicDeth opened this issue Sep 25, 2019 · 5 comments
Closed

Comments

@KronicDeth
Copy link

Build that were auto-upgraded from high-sierra-base to mojave-base or with an updated .cirrus.yml are stuck with the following prompt:

{"value":{"error":"session not created","message":"Could not create a session: You must enable the 'Allow Remote Automation' option in Safari's Develop menu to control Safari via WebDriver.","stacktrace":""}}
error: test failed, to rerun pass '--test web'

https://cirrus-ci.com/task/4760821944549376?command=lumen_web_test#L260

The .cirrus.yml already contained sudo safaridriver --enable calls, which do succeed, but unlike on high-sierra-base, this is not enough to get Safari working with Web Driver.

Can you enable some setting in the image to fix this?

KronicDeth added a commit to GetFirefly/firefly that referenced this issue Sep 26, 2019
Broken on mojave-base even with sudo safaridriver --enable
(cirruslabs/macos-image-templates#14).
@fkorotkov
Copy link
Contributor

Sorry to hear about the regression! Quick Googling doesn't show how to automate setting Allow Remote Automation via command line. Will investigate further to see how to modify the recipes for the images.

@fkorotkov
Copy link
Contributor

I wasn't able to find a viable way to automate this configuration. I prefer not to modify the VMs manually so not sure what to do here. How crucial for you testing on Safari?

@KronicDeth
Copy link
Author

We’re running the macOS VMs specifically to get WebAssembly testing in Safari. There’s not really a point for the macOS builds without it for us until we start using the macOS build to create precompiled binaries, which isn’t for a 4-6 weeks.

@fkorotkov
Copy link
Contributor

Got it. Just manually modified the VM. Please try to re-enable the tests again.

KronicDeth added a commit to GetFirefly/firefly that referenced this issue Oct 4, 2019
@fkorotkov fixed (cirruslabs/macos-image-templates#14 (comment)) the `mojave-base` to "Allow Remote Automation" in Safar.
@KronicDeth
Copy link
Author

The build (https://cirrus-ci.com/task/5356567184015360) is fixed (GetFirefly/firefly#319). Thanks @fkorotkov.

fkorotkov added a commit that referenced this issue Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants