WebDriver driver=new SafariDriver();
driver.get("https://www.google.co.in");
MAC OS version: 10.10.02
Safari version: 8.0.4
Selenium: 2.47.1
Note: I have added webdriver extension to safari browser.
Error Message:
Sep 23, 2015 2:24:31 PM org.openqa.selenium.safari.SafariDriverServer start
INFO: Server started on port 38452
Sep 23, 2015 2:24:32 PM org.openqa.selenium.safari.SafariDriverCommandExecutor start
INFO: Launching Safari
Sep 23, 2015 2:24:32 PM org.openqa.selenium.safari.SafariDriverCommandExecutor start
INFO: Waiting for SafariDriver to connect
Sep 23, 2015 2:24:33 PM org.openqa.selenium.safari.SafariDriverChannelHandler$1 operationComplete
INFO: Connection opened
Sep 23, 2015 2:24:33 PM org.openqa.selenium.safari.SafariDriverCommandExecutor start
INFO: Driver connected in 1459 ms
Sep 23, 2015 2:24:33 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutting down
Sep 23, 2015 2:24:33 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Closing connection
Sep 23, 2015 2:24:33 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Stopping Safari
Sep 23, 2015 2:24:33 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Stopping server
Sep 23, 2015 2:24:33 PM org.openqa.selenium.safari.SafariDriverServer stop
INFO: Stopping server
Sep 23, 2015 2:24:33 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutdown complete
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.46.0', revision: '87c69e2', time: '2015-06-04 16:16:47'
System info: host: 'TridentSQAs-MacBook-Pro.local', ip: '192.168.16.142', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.2', java.version: '1.8.0_51'
Driver info: driver.version: SafariDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:58)
at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:42)
at Testing.Practice.main(Practice.java:9)
Caused by: java.lang.ClassCastException: com.google.gson.JsonObject cannot be cast to java.lang.String
at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:111)
at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:42)
at org.openqa.selenium.safari.SafariDriverCommandExecutor.execute(SafariDriverCommandExecutor.java:191)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:578)
... 6 more
Safari driver logs:
14:31:43.39 [safaridriver.extension.Server] [bj3i0ongjf8v] Failed to connect to ws://localhost:17315
14:31:43.89 [safaridriver.extension.Server] [bj3i0ongjf8v] Attempting to connect to ws://localhost:17315
14:31:43.90 [safaridriver.extension.Server] [bj3i0ongjf8v] WebSocket connection was closed.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6ecc08ba-72c6-4a19-8c12-f0c8f4d9160f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.