Safari can wait indefinitely page load (driver.get command)
See original GitHub issueSafari: 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:
- Created 8 years ago
- Comments:11 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m currently experiencing this problem. Any news on this?
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.