Exemplo n.º 1
0
 /**
  * Perform the login action with the login et password params
  *
  * @param string $login  User login
  * @param string $passwd User password
  *
  * @return ConsultationsPage
  */
 function doLogin($login, $passwd)
 {
     $this->setLogin($login);
     $this->setPasswd($passwd);
     $this->clickLoginButton();
     if (!isset($login) || !isset($passwd)) {
         $this->driver->acceptAlert();
     }
     return new HomePage($this->driver);
 }