Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function findElements(WebDriverBy $by) |
||
43 | { |
||
44 | $params = [ |
||
45 | 'using' => $by->getMechanism(), |
||
46 | 'value' => $by->getValue(), |
||
47 | ':id' => $this->id, |
||
48 | ]; |
||
49 | $raw_elements = $this->executor->execute( |
||
50 | DriverCommand::FIND_CHILD_ELEMENTS, |
||
51 | $params |
||
52 | ); |
||
53 | |||
54 | $elements = []; |
||
55 | foreach ($raw_elements as $raw_element) { |
||
56 | $elements[] = $this->newElement(current($raw_element)); |
||
57 | } |
||
58 | |||
59 | return $elements; |
||
60 | } |
||
63 |