public static function set_up_before_class()
 {
     self::$driver = RemoteWebDriver::createBySessionId($GLOBALS['global_session_id'], $GLOBALS['global_webdriver_host']);
     self::$db = new mysqli(getenv('HOST'), 'root', getenv('MYSQL_PWD'), getenv('WORDPRESS_DATABASE'));
 }
Пример #2
0
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();
    }
}