1: <?php
2: namespace Azalea\Selenium\EHR\UI;
3:
4: class MainSearch extends \Azalea\Selenium\Core\View
5: {
6: 7: 8: 9:
10: public function setText($text)
11: {
12: $this->byId("search_box")->value($text);
13: }
14:
15: 16: 17:
18: public function search()
19: {
20: $this->byId("btn_search")->click();
21: }
22:
23: 24: 25: 26:
27: public function clickNewPatient()
28: {
29: $this->clickAndWait($this->byId("btn_add_patient"), 5);
30: return new Patients\PatientDemographicsPopup($this);
31: }
32:
33: 34: 35: 36:
37: public function clickNewChart()
38: {
39: $this->clickAndWait($this->byId("btn_add_chart"));
40: return new Patients\PatientSearchPopup($this);
41: }
42:
43: 44: 45: 46:
47: public function verify()
48: {
49: $this->byId("search_box");
50: $this->byId("btn_search");
51: return true;
52: }
53: }
54: ?>