| 1 | <?php |
||
| 14 | class Page extends BasePage |
||
| 15 | { |
||
| 16 | public function getCollection($label) |
||
| 17 | { |
||
| 18 | return $this->find('xpath', sprintf('//div[@data-prototype]/ancestor::*[@class = "form-group"]/label[text() = "%s"]/..//div[@data-prototype]', $label)); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getNoneditableCollection($label) |
||
| 22 | { |
||
| 23 | return $this->find('xpath', sprintf('//div[@data-prototype-name]/ancestor::*[@class = "form-group"]/label[text() = "%s"]/..//div[@data-prototype-name]', $label)); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |