driver = RemoteWebDriver::create( 'http://localhost:4444/wd/hub', array( WebDriverCapabilityType::BROWSER_NAME //=> WebDriverBrowserType::FIREFOX, => WebDriverBrowserType::HTMLUNIT, ) ); } protected function tearDown() { if ($this->driver) { $this->driver->quit(); } } /** * Get the URL of the test html. * * @param $path * @return string */ protected function getTestPath($path) { return 'file:///'.dirname(__FILE__).'/html/'.$path; } }