Пример #1
0
function viewRequest($driver, $name)
{
    goHome($driver);
    $request = $driver->findElement(WebDriverBy::linkText('Requests'));
    $request->click();
    $driver->wait(65);
    //$clickRequest= $driver->findElement(WebDriverBy::cssSelector('a[name="'.$name.'"]'));
    goHome($driver);
}
Пример #2
0
<?php

require_once __DIR__ . '/config.php';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    try {
        MyApp\Token::validate('token');
    } catch (Exception $e) {
        echo $e->getMessage();
        exit;
    }
    $_SESSION = [];
    if (isset($_COOKIE[session_name()])) {
        setcookie(session_name(), '', time() - 86400, '/');
    }
    session_destroy();
}
goHome();