1 | <?php |
||
11 | trait DriverSwitcher |
||
12 | { |
||
13 | public abstract function getElementObject($element); |
||
14 | |||
15 | public abstract function getDriver(); |
||
16 | |||
17 | /** |
||
18 | * @param string | Element $iFrameElement |
||
19 | * @throws \ReflectionException |
||
20 | */ |
||
21 | public function switchToIFrame($iFrameElement) |
||
35 | |||
36 | /** |
||
37 | * @param null|string $name |
||
38 | */ |
||
39 | public function switchToWindow($name = null) |
||
43 | |||
44 | /** |
||
45 | * Return the name of the currently active window. |
||
46 | * |
||
47 | * @return string the name of the current window |
||
48 | */ |
||
49 | public function getDriverActiveWindowName() |
||
53 | |||
54 | /** |
||
55 | * @param $iFrame |
||
56 | * @throws \ReflectionException |
||
57 | */ |
||
58 | private function switchToIFrameByCssId($iFrame) |
||
69 | } |
||
70 |