Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
33 | public function logInAsExistingUser($login, $password) |
||
34 | { |
||
35 | $document = $this->getDocument(); |
||
36 | |||
37 | $emailField = $document->find('css', '.checkout-existing-customer input#username'); |
||
38 | $passwordField = $document->find('css', '.checkout-existing-customer input#password'); |
||
39 | |||
40 | $emailField->setValue($login); |
||
41 | $passwordField->setValue($password); |
||
42 | |||
43 | $document->pressButton('Login'); |
||
44 | } |
||
45 | } |
||
46 |