1: <?php
2: namespace Azalea\Selenium\EHR\UI\Settings\General;
3:
4: class InsurancesSection extends \Azalea\Selenium\Core\View
5: {
6:
7: protected static $hash = "/settings/general/insurancelist";
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 Insurances\InsurancesList($this);
25: }
26:
27: public function clickCreateInsurance()
28: {
29: $this->clickAndWait($this->byCss($this->getSelector() . " #addInsurance"), 2);
30: return new Insurances\InsuranceCreatePopup($this);
31: }
32:
33: public function clickCreateClass()
34: {
35: $this->clickAndWait($this->byCss($this->getSelector() . " #btn_add_ins_class"), 2);
36: return new Insurances\InsuranceCreateClassPopup($this);
37: }
38:
39: public function clickExport()
40: {
41: $this->clickAndWait($this->byCss($this->getSelector() . " #exportInsurances"), 2);
42: }
43: }