selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Safari Extension turns inactive/removed temporarily in grid

Open manjunathscp opened this issue 11 years ago • 4 comments

Hi,

Problem Area: Safari Extension - Selenium 2.45.0

When I run a bunch of tests in Safari browser through grid, after some initial tests are run, the extension seems to be missing in the browser and the remaining tests fails with status "Failed to connect to SafariDriver after 10059 ms(..)".

If I rerun the job again the same behavior is observed. The extension breaks at some point by the looks of it.

Kindly advice what could be the problem here.

manjunathscp avatar Aug 20 '15 08:08 manjunathscp

I forgot to add that I'm running scripts from Jenkins.

Could this issue be related to Jenkins?

manjunathscp avatar Aug 21 '15 13:08 manjunathscp

Try to set system property before driver initialisation:

System.setProperty("webdriver.safari.noinstall", "true");

Or add capability for safari driver after driver initialisation:

capabilities = DesiredCapabilities.safari();
capabilities.setCapability("webdriver.safari.noinstall", "true");

Using any of above/both will resolve your problem.

abhishekkyd avatar Aug 31 '15 11:08 abhishekkyd

Any other advice? I am running into the same issue with 2.45.0. I tried both methods for noinstall. Still crashes on driver initialisation with grid.

m3kessler1 avatar Sep 18 '15 15:09 m3kessler1

@yadavgabhi Capabilities helped

manjunathscp avatar Mar 24 '16 07:03 manjunathscp