1: <?php
2: namespace Azalea\Selenium\PHR\UI;
3:
4: class PopupError extends \Azalea\Selenium\Core\View
5: {
6: protected static $SELECTOR = ".awa-mvc-PopupView.error";
7:
8: 9: 10: 11: 12:
13: public function isVisible()
14: {
15: return $this->exists(self::$SELECTOR);
16: }
17:
18: 19: 20: 21:
22: public function getText()
23: {
24: return $this->byCss(self::$SELECTOR." .popup_message_contents")->text();
25: }
26:
27: 28: 29:
30: public function dismiss()
31: {
32: $this->byCss(self::$SELECTOR." .close")->click();
33: }
34: }
35: ?>