Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98756

Tests run on remote mac error with "unable to connect to safaridriver" in Selenium

$
0
0

I have a remote mac mini hosted in a mac-specialized data center (MacStadium) which I have SSH access to. As far as I know, it's a headless box with no monitor or external hardware attached.

We're deploying Selenium tests with Jenkins to run on this remote box's Safari, the idea being to automate our mac testing. The tests ran fine on our old setup (just a macbook pro), but with this cloud-based option, we're getting errors:

2019-10-28 13:39:07 WARN Selenium [DEPRECATION] :driver_path is deprecated. Use :service with an instance of Selenium::WebDriver::Service instead.
2019-10-28 13:39:07 WARN Selenium [DEPRECATION] :port is deprecated. Use :service with an instance of Selenium::WebDriver::Service instead.
      unable to connect to safaridriver 127.0.0.1:56051 (Selenium::WebDriver::Error::WebDriverError)
      ./features/support/hooks.rb:23:in `After'

This is causing the first scenario to fail, and the rest to be skipped.

One thing I have not been able to do, since this is a remote machine, is configure the "Allow Remote Automation" in the safari technology preview, though everything else would seem to be the same. Does anyone recognize these errors?


Viewing all articles
Browse latest Browse all 98756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>