selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Safari 9.0.2 failing to respond for Executing: [get 'url']

Open vveliev opened this issue 10 years ago • 5 comments

Safari driver start to work and then hangs after some time.

vveliev avatar Jan 13 '16 16:01 vveliev

I'm having the same issue but with Firefox

mdmmoreno avatar Jan 13 '16 22:01 mdmmoreno

please provide an example (code and url) that can reproduce your issue

5hawnknight avatar Jan 18 '16 20:01 5hawnknight

I was able to fix my problem by downgrading my Firefox.

mdmmoreno avatar Jan 18 '16 20:01 mdmmoreno

I saw the same issue on our OS X machines and pulled down the latest Selenium source to take a peak at the Safari driver extension. I've updated our machines to Safari 9.0.x, with Safari extension 2.48.x, and Selenium server 2.52.x

I found that we would call: wDriver.get("www.foobar.com");

Which would trigger a pageUnload event in Safari. However, the Safari driver extension was not receiving notification that the page is ready.

You can view the method here: https://github.com/SeleniumHQ/selenium/blob/009260c837f371e9b3650e46e6572fbb14fffbec/javascript/safari-driver/extension/tab.js#L98

I removed: this.notifyUnready(); and ran my test suite multiple times over the weekend without any ill effects and improved test stability.

No more socket timeouts or hanging GET requests when I drive the browser to a different page or cause elements to unload.

I'm still keeping a keen eye on the issue but will post back if things change.

Hope that helps.

bmwe30is avatar Feb 29 '16 17:02 bmwe30is

With the release of Safari 10, Apple now offers official support WebDriver. Because of this, the Selenium project no supports the legacy implementation from 2.x.

Users are advised to switch to Apple's driver and file bugs at https://bugreport.apple.com/

We are no longer tracking issues for Selenium's SafariDriver and thus closing this issue.

lukeis avatar Sep 23 '16 20:09 lukeis