Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

In my project I'm trying to enable automation tests using Selenium (3.4.0, also tried lower versions) on Mac with Safari. As Apple forums say, I'm using Technology preview for tests.

Safari starts okay, but all sites are failing with following error:

Safari can't open page. The error is "Webkit encountered an internal error" (WebkitErrorDomain:300)

Error example

But in not-automation session everything opens correctly.

Here is how browser driver is initialized:

SafariOptions safariOptions = new SafariOptions();

safariOptions.setUseTechnologyPreview(true);

safariOptions.setUseCleanSession(true);

caps.setCapability(SafariOptions.CAPABILITY, safariOptions);

driver = new SafariDriver(caps);

Do you have any thoughts? Thanks in advance

1 Answer

0 votes
by (62.9k points)

Seems like Safari does not support explicit waits anymore with 3.4.0 and safari 11. I faced the same issue and when I removed the explicit waits and used Thread.sleep() it seems to work fine. Although this not what I wanted but 300 error was gone.

Browse Categories

...