1: <?php
2: namespace Azalea\Selenium\EHR\UI\Settings\General;
3:
4: class HandoutsSection extends \Azalea\Selenium\Core\View
5: {
6:
7: protected static $hash = "/settings/general/handouts";
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: return true;
20: }
21:
22: public function getList()
23: {
24: return new Handouts\HandoutsList($this);
25: }
26:
27: public function clickCreate()
28: {
29: $this->clickAndWait($this->byCss($this->getSelector() . " #btn_new_handout"), 2);
30: return new Handouts\HandoutPopupCreate($this);
31: }
32:
33: public function clickRefresh()
34: {
35: $this->clickAndWait($this->byCss($this->getSelector() . " #btn_refresh"), 2);
36: return new Handouts\HandoutsList($this);
37: }
38: }