1: <?php
2: namespace Azalea\Selenium\EHR\UI\Patients;
3:
4: class PatientDocuments extends PatientSection
5: {
6:
7: protected static $hash = "/patients/p/{pat_id}/documents";
8:
9: protected static $selectorSection = ".patients-PatientsDocumentsView";
10:
11: 12: 13: 14:
15: public function getDocumentList()
16: {
17: return $this->uiDocumentList;
18: }
19:
20: 21: 22: 23:
24: public function clickCheckAll()
25: {
26: $this->byCss($this->getSelectorSection().' [name="pat_doc_chk_all"]')
27: ->click();
28: }
29:
30: 31: 32: 33:
34: public function isAssembleButtonVisible()
35: {
36: return $this->displayed($this->getSelectorSection()." button.assemble-documents");
37: }
38:
39: 40: 41: 42:
43: public function verify($args = array())
44: {
45: if (parent::verify($args)) {
46: $this->byCss($this->getSelectorSection());
47: $this->byCss($this->getSelectorSection()." button.select-documents");
48: $this->byCss($this->getSelectorSection()." .dropinfo");
49:
50: $this->uiDocumentList = new PatientDocumentsList($this, $args);
51:
52: return true;
53: }
54:
55: return false;
56: }
57: }