1: <?php
2: namespace Azalea\Selenium\EHR\UI\Settings\General;
3:
4: class UsersSection extends \Azalea\Selenium\Core\View
5: {
6:
7: protected static $hash = "/settings/general/userlist";
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: protected static $NEW_USER_BTN_CSS = ".blue.addWebUser";
15:
16: public function verify($args = array())
17: {
18: $this->byCss($this->getSelector($args) . " " . static::$CONTROLS_CSS);
19: $this->byCss($this->getSelector($args) . " .awa-mvc-StructuredView-sidebar-and-contents");
20: return true;
21: }
22:
23: public function getList()
24: {
25: return new Users\UsersList($this);
26: }
27:
28: public function clickNewWebUser()
29: {
30: $this->clickAndWait($this->byCss($this->getSelector() . " " . static::$CONTROLS_CSS . " " . static::$NEW_USER_BTN_CSS), 2);
31: return new Users\UserCreatePopup($this);
32: }
33: }