public static function setUpBeforeClass() { self::$driver = RemoteWebDriver::createBySessionId($GLOBALS['global_session_id'], $GLOBALS['global_webdriver_host']); }
function close_webdriver() { if (isset($GLOBALS['global_session_id']) && isset($GLOBALS['global_webdriver_host'])) { RemoteWebDriver::createBySessionId($GLOBALS['global_session_id'], $GLOBALS['global_webdriver_host'])->close(); } }