1: <?php
2: namespace Azalea\Selenium\Login\UI;
3:
4: class ResetPasswordForm extends \Azalea\Selenium\Core\View
5: {
6: 7: 8: 9:
10: public function email($email)
11: {
12: $this->byName('email')->value($email);
13: }
14:
15: 16: 17:
18: public function submit()
19: {
20: $this->byName("reset_password")->click();
21: }
22:
23: 24: 25: 26:
27: public function isInvalid()
28: {
29: return $this->isTextPresent("Invalid Email Address. Please Try Again.");
30: }
31:
32: 33: 34: 35:
36: protected function verify()
37: {
38:
39: $this->byName("email");
40:
41: return ($this->isTextPresent("Enter Your Email Address Below.") &&
42: $this->isTextPresent("We Will Email You A Link To Reset Your Password."));
43: }
44: }