1: <?php
2: namespace Azalea\Selenium\EHR\UI;
3:
4: class Heading extends \Azalea\Selenium\Core\View
5: {
6: protected static $HEADING_SELECTOR = "#title_menu .heading";
7:
8: /**
9: * Checks if the heading matches the given text.
10: * @param string $text
11: * @return boolean
12: */
13: public function matches($text)
14: {
15: return $this->isTextPresent($text, $this->byCss(self::$HEADING_SELECTOR));
16: }
17:
18: /**
19: * @override
20: * @return boolean
21: */
22: public function verify()
23: {
24: $this->byCss(self::$HEADING_SELECTOR);
25: return true;
26: }
27: }
28: ?>