1 | <?php |
||
17 | class Selenium2DriverFactory implements IMinkDriverFactory |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Returns driver name, that can be used in browser configuration. |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | 10 | public function getDriverName() |
|
29 | |||
30 | /** |
||
31 | * Returns default values for browser configuration. |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | 10 | public function getDriverDefaults() |
|
42 | |||
43 | /** |
||
44 | * Returns a new driver instance according to the browser configuration. |
||
45 | * |
||
46 | * @param BrowserConfiguration $browser The browser configuration. |
||
47 | * |
||
48 | * @return DriverInterface |
||
49 | * @throws \RuntimeException When driver isn't installed. |
||
50 | */ |
||
51 | 1 | public function createDriver(BrowserConfiguration $browser) |
|
74 | } |
||
75 |