Failed to connect to SafariDriver
Hello,
I need some help. I use Selenium Grid v 2.48.2. I try to run my tests on Yosemate 10 with Safari 9.0.1 and receive this exception:
" Failed to connect to SafariDriver after 10084 ms"
backtrace:
22:57:37.277 INFO - Launching a Selenium Grid node
Setting system property webdriver.Safari.driver to /users/admin/Downloads/selenium-master/build/javascript/safari-driver/SafariDriver.safariextension
22:57:53.393 INFO - Java: Oracle Corporation 25.60-b23
22:57:53.393 INFO - OS: Mac OS X 10.10.5 x86_64
22:57:53.641 INFO - v2.48.0, with Core v2.48.0. Built from revision 41bccdd
22:57:55.726 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC
22:57:55.726 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC
22:57:55.726 INFO - Driver class not found: com.opera.core.systems.OperaDriver
22:57:55.726 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
22:57:57.950 INFO - Version Jetty/5.1.x
22:57:57.957 INFO - Started HttpContext[/selenium-server,/selenium-server]
22:57:59.889 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@b59d31
22:57:59.889 INFO - Started HttpContext[/wd,/wd]
22:57:59.889 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
22:57:59.889 INFO - Started HttpContext[/,/]
22:57:59.961 INFO - Started SocketListener on 0.0.0.0:5555
22:57:59.961 INFO - Started org.openqa.jetty.jetty.Server@4f063c0a
22:57:59.962 INFO - Selenium Grid node is up and ready to register to the hub
22:58:01.825 INFO - Starting auto registration thread. Will try to register every 5000 ms.
22:58:01.825 INFO - Registering the node to the hub: http://myhubip:4444/grid/register
22:58:01.906 INFO - The node is registered to the hub and ready to use
Executing: [new session: Capabilities [{rotatable=false, nativeEvents=false, browserName=safari, takesScreenshot=true, javascriptEnabled=true, nonistall=true, version=, platform=ANY, cssSelectorsEnabled=true, timeoutInSeconds=30}]])
23:08:24.249 INFO - Creating a new session for Capabilities [{rotatable=false, nativeEvents=false, browserName=safari, takesScreenshot=true, javascriptEnabled=true, nonistall=true, version=, platform=ANY, cssSelectorsEnabled=true, timeoutInSeconds=30}]
23:08:32.116 INFO - Server started on port 49107
23:08:32.508 INFO - Launching Safari
23:08:32.707 INFO - Waiting for SafariDriver to connect
23:09:09.887 INFO - Shutting down
23:09:09.887 INFO - Stopping Safari
23:09:09.942 INFO - Stopping server
23:09:09.942 INFO - Stopping server
23:09:09.970 INFO - Shutdown complete
23:09:09.971 INFO - Shutting down
23:09:09.971 INFO - Stopping server
23:09:09.971 INFO - Shutdown complete
23:09:10.320 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'ip', ip: 'ip', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_60'
Driver info: driver.version: unknown
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:183)
at org.openqa.selenium.remote.server.DefaultSession.
safari:

For Safari 8 this exception is reproduced. Could somebody helps me? Thank you.
duplicate of #1185
@lukeis , this is different issue ... as it failing to find extension. I have created #1315 The issue is that extension is untrusted. I cannot install it to the Safari 9.0.1 , the only way is use developer extension builder , to build it from source. but it's only lasting for current safari run.
Are you downloading the latest Safari driver and manually installing it? That one should be trusted.
Safari version 9.0.1 (10601.2.7.2) and I cannot install latest driver. It does ask if i want to trust it and nothing happen after. I do not see any plugins installed My solution was to compile it from source.
@lukeis, this is different issue because in #1185 connection to Safari extension is succesed. Please, can you open my issue? @titusfortner, I try to do it but I have same issue as #1315. I compile it from source.
I am seeing this issue with OSX 10.10.05, safari 9.0.2 and webdriver 2.48.2. I can resolve it by manually installing the extension and then disabling/enabling the extension in safari preferences (at least temporarily).
Can we re-open this? I'm happy to help investigate if someone can give me pointers.
I am also facing the same issue with mac OS 10.12.2 (16C68) and Safari 10.0.2.
Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Failed to connect to SafariDriver after 10064 ms
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 's-MacBook-Pro.hsd1.ca.comcast.net', ip: '10.81.249.107', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.2', java.version: '1.8.0_65'
Driver info: driver.version: TestDriver
at org.openqa.selenium.safari.SafariDriverCommandExecutor.start(SafariDriverCommandExecutor.java:121)
at org.openqa.selenium.safari.SafariDriver.startClient(SafariDriver.java:76)
at org.openqa.selenium.remote.RemoteWebDriver.
@Mansik8 I'd edit your message as it has your public IP address in it