1: <?php
2: namespace Azalea\Selenium\EHR\UI;
3:
4: class MainMenu extends \Azalea\Selenium\Core\View
5: {
6: protected static $HOME_CSS = "#main_menu .home";
7: protected static $SCHEDULER_CSS = "#main_menu .scheduler";
8: protected static $PATIENTS_CSS = "#main_menu .patients";
9: protected static $ENCOUNTERS_CSS = "#main_menu .encounters";
10: protected static $PAYMENTS_CSS = "#main_menu .payments";
11: protected static $PRECERTS_CSS = "#main_menu .precerts";
12: protected static $DOCUMENTS_CSS = "#main_menu .documents";
13: protected static $REPORTS_CSS = "#main_menu .reports";
14: protected static $SETTINGS_CSS = "#main_menu .settings";
15:
16: public function clickHome()
17: {
18: $this->clickAndWait($this->byCss(self::$HOME_CSS), 4);
19: return new Home\Home($this);
20: }
21:
22: public function hasHome()
23: {
24: return $this->exists(self::$HOME_CSS);
25: }
26:
27: public function clickScheduler()
28: {
29: $this->clickAndWait($this->byCss(self::$SCHEDULER_CSS), 4);
30: return new Scheduler\Scheduler($this);
31: }
32:
33: public function hasScheduler()
34: {
35: return $this->exists(self::$SCHEDULER_CSS);
36: }
37:
38: public function clickPatients()
39: {
40: $this->clickAndWait($this->byCss(self::$PATIENTS_CSS), 4);
41: return new Patients\Patients($this);
42: }
43:
44: public function hasPatients()
45: {
46: return $this->exists(self::$PATIENTS_CSS);
47: }
48:
49: public function clickEncounters()
50: {
51: $this->clickAndWait($this->byCss(self::$ENCOUNTERS_CSS), 4);
52: return new Encounters\Encounters($this);
53: }
54:
55: public function hasEncounters()
56: {
57: return $this->exists(self::$ENCOUNTERS_CSS);
58: }
59:
60: public function clickPayments()
61: {
62: $this->clickAndWait($this->byCss(self::$PAYMENTS_CSS), 4);
63: return new Payments\Payments($this);
64: }
65:
66: public function hasPayments()
67: {
68: return $this->exists(self::$PAYMENTS_CSS);
69: }
70:
71: public function clickPrecerts()
72: {
73: $this->clickAndWait($this->byCss(self::$PRECERTS_CSS), 4);
74: return new Precerts\Precerts($this);
75: }
76:
77: public function hasPrecerts()
78: {
79: return $this->exists(self::$PRECERTS_CSS);
80: }
81:
82: public function clickDocuments()
83: {
84: $this->clickAndWait($this->byCss(self::$DOCUMENTS_CSS), 4);
85: return new Documents\Documents($this);
86: }
87:
88: public function hasDocuments()
89: {
90: return $this->exists(self::$DOCUMENTS_CSS);
91: }
92:
93: public function clickReports()
94: {
95: $this->clickAndWait($this->byCss(self::$REPORTS_CSS), 4);
96: return new Reports\Reports($this);
97: }
98:
99: public function hasReports()
100: {
101: return $this->exists(self::$REPORTS_CSS);
102: }
103:
104: public function clickSettings()
105: {
106: $this->clickAndWait($this->byCss(self::$SETTINGS_CSS), 4);
107: return new Settings\Settings($this);
108: }
109:
110: public function hasSettings()
111: {
112: return $this->exists(self::$SETTINGS_CSS);
113: }
114:
115: 116: 117: 118:
119: public function verify()
120: {
121: $this->byId("main_menu");
122: return true;
123: }
124: }
125: ?>