question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Safari can wait indefinitely page load (driver.get command)

See original GitHub issue

Safari: 8.0.8 (10600.8.9) MacBook Air: OS X Yosemite 10.10.5 Java: JDK 1.7.0_79-b15 WebDriver: 2.47.1 SafariDriver: 2.45.0

One page of our SUT is loading very long time (>1 hour) and SafariDriver doesn’t throw an exception. To be honest it is loaded, but safari says that loading still is in progress.

SafariOptions safariOptions = new SafariOptions();
safariOptions.setUseCleanSession(true);

DesiredCapabilities capabilities = DesiredCapabilities.safari();
capabilities.setCapability(SafariOptions.CAPABILITY, safariOptions);

WebDriver webdriver = new SafariDriver(capabilities);
webdriver.get("http://sut");

I’ve tried add:

webdriver.manage().timeouts().implicitlyWait(10, TimeUnit.MILLISECONDS);

and

webdriver.manage().timeouts().setScriptTimeout(10, TimeUnit.MILLISECONDS);

but It didn’t help.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gabriellecamposcommented, May 9, 2016

I’m currently experiencing this problem. Any news on this?

0reactions
lukeiscommented, Sep 23, 2016

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium SafariDriver doesn't wait for page to load?
It could be that safari is just slower in some regard that causes issues with this page. Generally speaking, you should be using...
Read more >
If Safari on Mac doesn't open a webpage or isn't working as ...
To reload a page, choose View > Reload Page, or press Command-R. If you can't reload, make sure that you're connected to the...
Read more >
The Book Of Geb
To get up and running you simply need this jar, a WebDriver driver implementation and the selenium-support jar. Via @Grab … @Grapes([ @Grab("org.gebish:geb-core ......
Read more >
WebDriver - W3C
The WebDriver protocol is organized into commands. Each HTTP request with a method ... GET, /session/{ session id }/source, Get Page Source.
Read more >
Readme — etaoin 0.4.1 - cljdoc
If you have swap! or something similar in your code for the driver, please refactor your ... Reading browser's logs; Additional parameters; Eager...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found