Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function findElement(WebDriverBy $by) |
||
20 | { |
||
21 | $params = [ |
||
22 | 'using' => $by->getMechanism(), |
||
23 | 'value' => $by->getValue(), |
||
24 | ':id' => $this->id, |
||
25 | ]; |
||
26 | $raw_element = $this->executor->execute( |
||
27 | DriverCommand::FIND_CHILD_ELEMENT, |
||
28 | $params |
||
29 | ); |
||
30 | |||
31 | return $this->newElement(current($raw_element)); |
||
32 | } |
||
63 |