1: <?php
2: namespace Azalea\Selenium\EHR\UI\Messaging;
3:
4: use \Azalea\Selenium\EHR\UI\PopupConfirm as PopupConfirm;
5:
6: class MessagingReply extends MessagingCompose
7: {
8: function __construct($args = array())
9: {
10: parent::__construct($args);
11:
12: self::$DISCARD_BTN = "#discard_msg_button";
13: }
14:
15: public function verify($args = array())
16: {
17: $this->byId("msg_compose_form");
18: return strpos($this->byId("msg_subject")->value(), "RE:") !== false;
19: }
20:
21: public function clickDiscard()
22: {
23: $this->clickAndWait($this->byCss(self::$DISCARD_BTN));
24:
25: $popup = new PopupConfirm($this);
26: $popup->confirm();
27:
28: $this->wait(2);
29: }
30: }