Safari 10 with WebDriver failed to open page

I'm trying to automate some stuff with Safari WebDriver and faced an issue with opening all pages.

As you could see from screenshot Safari driver was successfully created, but page was not loaded.

Safari Can’t Open the Page

Safari can’t open the page “https://www.google.com/”. The error is: “WebKit encountered an internal error” (WebKitErrorDomain:300)

(If I will click on this message and stop session - page will opened as usual after reload, but this will broke my test.)



I'm just running Safari driver as "safaridriver -p 8888". Driver was created as "RemoteWebDriver driver = new RemoteWebDriver(new URL("http://localhost:8888"), DesiredCapabilities.safari())"


I'm using macOS 10.12.4 (16E195), Safari Version 10.1 (12603.1.30.0.34), Java 1.8.0_101, Selenium 3.3.1


Any suggestions?

Try https://developer.apple.com/safari/technology-preview

...see if it helps.


Also note we're not allowed to share inline images/screenshots here so we can't see what you see.

Is there a support or webdriver available for safari 11 ? 2.48.0 doesn't work with Macos sierra, safari 11.

Hi, I have the same problem as well.

Steps:

1. I start the test

2. It opens the Safari browser and navigate to the url and it shows the following error in the browser.

Error: Safari Can’t Open the Page

Safari can’t open the page “www.google.com”. The error is: “WebKit encountered an internal error” (WebKitErrorDomain:300)

After I stop the session and reload the page it shows the page.

These are the verison and details of the test

Selenium: 3.5.3

Safari : 10.1.2

Mac OS Seirra 10.12.6

Safari 10 with WebDriver failed to open page
 
 
Q