1: <?php
2: namespace Azalea\Selenium\EHR\UI;
3:
4: class UserAccountMenu extends \Azalea\Selenium\Core\View
5: {
6: protected static $MENU_BUTTON_ID = "ui_user_info";
7:
8: 9: 10:
11: public function clickLockScreen()
12: {
13: $this->open();
14: $this->clickAndWait($this->byId("ui_lock_screen"), 4);
15: }
16:
17: 18: 19:
20: public function clickLogout()
21: {
22: $this->open();
23: $this->clickAndWait($this->byCss("#logout > a"), 4);
24: }
25:
26: 27: 28: 29:
30: public function verify()
31: {
32: $this->byId(self::$MENU_BUTTON_ID);
33: return true;
34: }
35:
36: 37: 38:
39: protected function open()
40: {
41:
42: $this->clickAndWait($this->byId(self::$MENU_BUTTON_ID));
43: }
44: }
45: ?>