Safari task failing without running any tests?

Problem

When I run a Charlotte task using Safari as the browser, it fails the job without running any of the jobs. The logs show the error "org.openqa.selenium.remote.UnreachableBrowserException: Failed to connect to SafariDriver after 10066 ms"

Solution

Install the Selenium Web Driver for Safari

  1. Go to the downloads section on the Selenium site and find the "Safari Driver" section
  2. Download the latest release
  3. Find the downloaded file "SafariDriver.safariextz" and double click on the file
  4. Click on "Install"
  5. Rerun the build plan