selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Safari Browser quits immediately working with Hub on Mac

Open Mansik8 opened this issue 10 years ago • 3 comments

I am facing same issue. Safari browser gets closed immediately after launching the browser with java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException

Selenium 2.52.0 Mac OS X 10.11 Safari:9.0

Details are:

Feb 22, 2016 11:05:08 AM org.openqa.selenium.safari.SafariDriverServer start INFO: Server started on port 28534 Feb 22, 2016 11:05:08 AM org.openqa.selenium.safari.SafariDriverCommandExecutor start INFO: Launching Safari Feb 22, 2016 11:05:08 AM org.openqa.selenium.safari.SafariDriverCommandExecutor start INFO: Waiting for SafariDriver to connect Feb 22, 2016 11:05:18 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop INFO: Shutting down Feb 22, 2016 11:05:18 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop INFO: Stopping Safari Feb 22, 2016 11:05:18 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop INFO: Stopping server Feb 22, 2016 11:05:18 AM org.openqa.selenium.safari.SafariDriverServer stop INFO: Stopping server Feb 22, 2016 11:05:18 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop INFO: Shutdown complete Feb 22, 2016 11:05:18 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop INFO: Shutting down Feb 22, 2016 11:05:18 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop INFO: Stopping server Feb 22, 2016 11:05:18 AM org.openqa.selenium.safari.SafariDriverCommandExecutor stop INFO: Shutdown complete org.apache.maven.surefire.booter.SurefireExecutionException: An error occurred while instantiating class com.apple.mqm.pfa.Tests.SmokeTests: null; nested exception is org.testng.TestNGException: An error occurred while instantiating class com.apple.mqm.pfa.Tests.SmokeTests: null org.testng.TestNGException: An error occurred while instantiating class com.apple.mqm.pfa.Tests.SmokeTests: null

Mansik8 avatar Feb 22 '16 19:02 Mansik8

I had a similar issue, rebooting the machine after installation of the Webdriver plugin worked for me.

JurgenR avatar Feb 29 '16 11:02 JurgenR

can you provide a code example and the command(s) that start your testing process?

5hawnknight avatar May 30 '16 21:05 5hawnknight

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.

lukeis avatar Sep 23 '16 20:09 lukeis