1: <?php
2: namespace Azalea\Selenium\EHR\UI;
3:
4: class Notifications extends \Azalea\Selenium\Core\View
5: {
6: protected static $SELECTOR = "#title_notifications";
7: protected static $MESSAGES_CSS = "#btn_messages";
8: protected static $TASKS_CSS = "#btn_tasks";
9: protected static $ERX_CSS = "#btn_erx";
10: protected static $LABS_CSS = "#btn_labs";
11: protected static $FAXES_CSS = "#btn_fax";
12: protected static $APPT_REQS_CSS = "#btn_apt_reqs";
13:
14: public function clickMessages()
15: {
16: $this->clickAndWait($this->byCss(self::$MESSAGES_CSS), 5);
17: return new Messaging\Messaging($this);
18: }
19:
20: public function hasMessages()
21: {
22: return $this->exists(self::$MESSAGES_CSS);
23: }
24:
25: public function clickTasks()
26: {
27: $this->clickAndWait($this->byCss(self::$TASKS_CSS), 5);
28: }
29:
30: public function hasTasks()
31: {
32: return $this->exists(self::$TASKS_CSS);
33: }
34:
35: public function clickErx()
36: {
37: $this->clickAndWait($this->byCss(self::$ERX_CSS), 5);
38: }
39:
40: public function hasErx()
41: {
42: return $this->exists(self::$ERX_CSS);
43: }
44:
45: public function clickLabs()
46: {
47: $this->clickAndWait($this->byCss(self::$LABS_CSS), 5);
48: }
49:
50: public function hasLabs()
51: {
52: return $this->exists(self::$LABS_CSS);
53: }
54:
55: public function clickFaxes()
56: {
57: $this->clickAndWait($this->byCss(self::$FAXES_CSS), 5);
58: }
59:
60: public function hasFaxes()
61: {
62: return $this->exists(self::$LABS_CSS);
63: }
64:
65: public function clickAppointmentRequests()
66: {
67: $this->clickAndWait($this->byCss(self::$APPT_REQS_CSS), 5);
68: }
69:
70: public function hasAppointmentRequests()
71: {
72: return $this->exists(self::$APPT_REQS_CSS);
73: }
74:
75: 76: 77: 78:
79: public function verify()
80: {
81: $this->byCss(self::$SELECTOR);
82: return true;
83: }
84: }
85: ?>