public function closeBrowser() { if ($this->webDriver) { $this->webDriver->close(); $this->webDriver = null; } }
public function close() { try { parent::close(); } catch (UnknownServerException $e) { // Sometimes webdriver loses connection with with browser. // We don't need the browser anymore. yolo } }