You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
558 B
33 lines
558 B
<?php |
|
|
|
namespace tests\functional\_pages; |
|
|
|
class LoginPage extends \tests\_pages\LoginPage |
|
{ |
|
|
|
/** |
|
* login form username text field locator |
|
* @var string |
|
*/ |
|
public $username = 'LoginForm[username]'; |
|
|
|
/** |
|
* login form password text field locator |
|
* @var string |
|
*/ |
|
public $password = 'LoginForm[password]'; |
|
|
|
/** |
|
* |
|
* @param string $username |
|
* @param string $password |
|
*/ |
|
public function login($username, $password) |
|
{ |
|
$this->guy->submitForm('#login-form',[ |
|
$this->username => $username, |
|
$this->password => $password, |
|
]); |
|
} |
|
|
|
}
|
|
|