The first Firefox test in a Travis job for a previous test run got a "Connection refused" WebDriverException when attempting to get the driver, perhaps because xvfb hadn't finished initializing yet. Give it a little more time in Travis jobs, and allow a few attempts to get the driver in case the first attempt hits a similar selenium exception.
The first Firefox test in a Travis job for a previous test run got a "Connection refused" WebDriverException when attempting to get the driver, perhaps because xvfb hadn't finished initializing yet. Give it a little more time in Travis jobs, and allow a few attempts to get the driver in case the first attempt hits a similar selenium exception.