1: <?php
2: namespace Azalea\Selenium\EHR\UI\Charts;
3:
4: class ChartsListTab extends \Azalea\Selenium\EHR\UI\TabPanel
5: {
6:
7: protected static $hash = "/charts";
8:
9: protected static $selector = "#chart-list-tab";
10: protected static $title = "";
11: protected static $title_selector = "";
12:
13: 14: 15: 16:
17: public function getChartsList()
18: {
19: return $this->uiChartsList;
20:
21: }
22:
23: public function doesChartListTabExist()
24: {
25: try {
26: $this->byCss(self::$selector);
27: } catch (\Exception $e) {
28: return false;
29: }
30: return true;
31: }
32:
33: 34: 35: 36:
37: public function verify($args = array())
38: {
39: $this->spinWait(array($this, "doesChartListTabExist"), 5);
40: $this->uiChartsList = new ChartsList($this);
41: return true;
42: }
43: }