1: <?php
2: namespace Azalea\Selenium\Login;
3:
4: 5: 6:
7: class ResetPasswordPage extends \Azalea\Selenium\Core\Page
8: {
9: const RESET_PASSWORD_PAGE_TITLE = "Azalea Health - Secure Site";
10:
11: 12: 13: 14:
15: public function resetPassword($email)
16: {
17: $this->resetForm->email($email);
18: $this->resetForm->submit();
19: }
20:
21: 22: 23: 24:
25: public function backToLogin()
26: {
27: $this->byName("back_to_login")->click();
28: return new LoginPage($this->driver);
29: }
30:
31: 32: 33: 34:
35: public function isInvalidEmail()
36: {
37: return $this->resetForm->isInvalid();
38: }
39:
40: 41: 42: 43:
44: protected function verify()
45: {
46:
47: $this->checkTitle(ResetPasswordPage::RESET_PASSWORD_PAGE_TITLE);
48:
49:
50: $this->resetForm = new UI\ResetPasswordForm($this);
51:
52: return true;
53: }
54: }
55: ?>