1: <?php
2: namespace Azalea\Selenium\App\Charts;
3:
4: use Azalea\Selenium\Toolkit\View;
5:
6: class ChartListControls extends View
7: {
8: public function byRenderingProvider($phy_id)
9: {
10: $self = $this;
11:
12: $this->driver->waitForHaze(false);
13: $this->querySelector('[name="soap_provider_menu"] + .awa-ui-searchable-select-overlay')->click();
14: $this->driver->spinWait(function () use ($self) {
15: return (count($self->querySelectorAll('[name="soap_provider_menu"] > option')) > 1);
16: });
17: $this->select("soap_provider_menu", $phy_id);
18: return $this;
19: }
20:
21: public function go()
22: {
23: $this->driver->waitForAjax();
24: $this->press("Go");
25: return $this;
26: }
27:
28: 29: 30: 31: 32:
33: public function reset()
34: {
35: $this->clickElement(".btn_reset");
36: return $this;
37: }
38: }
39:
40: ?>
41: