Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | private function switchToIFrameByCssId($iFrame) |
||
49 | { |
||
50 | if ($iFrame instanceof Element) { |
||
51 | $reflectedElement = new \ReflectionClass($iFrame); |
||
52 | if ($reflectedElement->hasMethod('getCssId') === false) { |
||
53 | throw new \ReflectionException("getCssId method not in Element " . get_class($iFrame)); |
||
54 | } |
||
55 | $iFrameId = $iFrame->getCssId(); |
||
56 | $this->getDriver()->switchToIFrame($iFrameId); |
||
57 | } |
||
58 | } |
||
59 | } |
||
60 |