1: <?php
2: namespace Azalea\Selenium\EHR\UI\Settings\General;
3:
4: class GroupsSection extends \Azalea\Selenium\Core\View
5: {
6:
7: protected static $hash = "/settings/general/groups";
8:
9: protected static $selector = "#general-tab";
10: protected static $title = "";
11: protected static $title_selector = "";
12:
13: protected static $CONTROLS_CSS = ".awa-mvc-StructuredView-control-panel.control_panel";
14:
15: public function verify($args = array())
16: {
17: $this->byCss($this->getSelector($args) . " " . static::$CONTROLS_CSS);
18: $this->byCss($this->getSelector($args) . " .awa-mvc-StructuredView-sidebar-and-contents");
19: $this->byCss($this->getSelector($args) . " #groups_contents");
20: return true;
21: }
22:
23: public function clickCreate()
24: {
25: $this->clickAndWait($this->byCss($this->getSelector() . " #btn_add_group"), 2);
26: return new Groups\GroupAddPopup($this);
27: }
28: }