Failed to run tests on Safari. Do we need a developer certificate?

I am trying to run my protractor tests in Safari. During my research, I learned that you don't need to download anything specifically for Safari when using the protractor because the driver comes with it. When trying to run my tests, I got the message "No Safari driver". Then I installed this extension for Safari - from the link below.

https://code.google.com/p/selenium/wiki/SafariDriver

http://selenium-release.storage.googleapis.com/index.html?path=2.45/

This extension is indeed displayed by preference - an extension in Safari. While running my tests, I first get this and then go to an empty window. After that, nothing happens ... Do we have to buy an Apple dev subscription so that we can use safari? I was hoping to run appium tests on iOS devices and I doubt Safari will work even with mobile browsers.

What are my options? Paying the only way to get Safari working on Mac?

I have a MacBook Pro - Yosemite - 10.10.4 Safari - 8.0.7

[0.002s] [safaridriver.client] Connecting to the SafariDriver browser extension ... [0.002s] [safaridriver.client] This will fail if you haven't installed the latest SafariDriver extension from http: //selenium-release.storage.googleapis. com / index.html [0.003s] [safaridriver.client] The extension logs can be viewed by clicking the Selenium button [✓] on the Safari toolbar [0.005s] [safaridriver.client] Connected to the extension [0.006s] [safaridriver.client] Extension request to connect to client at ws: // localhost: 13871

+3


source to share


1 answer


I had Selenium 2.45 installed and this is what I did to get SafariDriver working on OS X 10.9.5 with Selenium 2.46:

  • Remove current SafariDriver from Safari (Preferences> Extensions> WebDriver 2.45.0> Uninstall)
  • Download and Unpack Selenium 2.46 for Java ( http://selenium-release.storage.googleapis.com/2.46/selenium-java-2.46.0.zip )
  • Unzip /selenium-2.46.0/selenium-java-2.46.0.jar

  • Find and double click /selenium-2.46.0/selenium-java-2.46.0/org/openqa/selenium/safari/SafariDriver.safariextz



This will install what I believe is SafariDriver 2.46.0. It will be listed in Safari as WebDriver 2.45.0

, but the file date is newer and it worked for me.

+2


source







All Articles