-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix most (I hope) instances of Unable to establish a connection with SafariDriver #283
Conversation
Issues: SeleniumHQ#7933, SeleniumHQ#7963, SeleniumHQ#7974, 7801 Refactor how the extension installation happens by splitting the installer into multiple Platform specific installers. If the installation still fails, provide a much more detailed explanation as to why the failure occurred and suggestions how to fix it. Conflicts: java/client/src/org/openqa/selenium/safari/SafariExtensions.java
Did more digging on Unmanaged jobs may not make XPC Events requests, it seems that permissions on the system for some system files are not correct. Try this if the return is anything but 0, you should run this to fix permission
|
Tried and no luck /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113 |
Sorry that(permissions and/or updating the driver) did fix the issue |
Do you think you'll have time to come back to this? It seems like feedback has sort of dried up on the Selenium bug (7933), but I'm interested in getting this fixed and hopefully can offer some debugging help. I'm on OSX 10.9.5 and Safari 7.1. Using the AppleScript installation method worked for me, after clicking a couple buttons manually to allow Accessibility features and access to the keychain. That is, I just changed isYosemiteOrHigher to check for minorVersion >= 9. And renamed it isMavericksOrHigher, I guess :) It could be that the DefaultMacInstaller method still works with older versions of Safari, regardless of OS version, though I haven't confirmed that -- I can attempt to try it on OSX 10.9.5 + Safari 7.0.6 if that's helpful. (It's possible but non-trivial for me to get access to such a machine, so I'm not 100% sure I can test that.) If that's the case, I guess you might need to check both the OS version and browser version before choosing an installation method...? Also, just to confirm, I also see that "Unmanaged jobs may not make XPC Events requests" in the Console and it doesn't seem to do any harm. |
Follow-up: @dimacus closed this b/c we've decided to drop auto-installation of the SafariDriver and require users to manually install the extension. Working with the keychain was proving to be too complicated and fragile to be a sustainable option. |
Tested on:
Issues: #7933, #7963, #7974, 7801
Refactor how the extension installation happens by splitting the
installer into multiple Platform specific installers. If the installation
still fails, provide a much more detailed explanation as to why the failure
occurred and suggestions how to fix it.
Conflicts:
java/client/src/org/openqa/selenium/safari/SafariExtensions.java