1 | <?php |
||
5 | class SeleniumOptions |
||
6 | { |
||
7 | protected $seleniumJarLocation = './selenium-server-standalone.jar'; |
||
8 | protected $seleniumLogLocation = 'selenium.log'; |
||
9 | protected $seleniumPort = 4444; |
||
10 | protected $seleniumUrl = 'http://localhost:%d/selenium-server/driver/'; |
||
11 | protected $seleniumQuery = ['query' => ['cmd' => 'getLogMessages']]; |
||
12 | |||
13 | public function setSeleniumUrl($url) |
||
17 | |||
18 | public function getSeleniumUrl() |
||
22 | |||
23 | /** |
||
24 | * @param string $query |
||
25 | */ |
||
26 | public function setSeleniumQuery($query) |
||
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getSeleniumQuery() |
||
38 | |||
39 | /** |
||
40 | * @param string $path |
||
41 | */ |
||
42 | public function setSeleniumLogLocation($path) |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getSeleniumLogLocation() |
||
54 | |||
55 | /** |
||
56 | * @param string $path |
||
57 | */ |
||
58 | public function setSeleniumJarLocation($path) |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getSeleniumJarLocation() |
||
70 | |||
71 | /** |
||
72 | * @param int $port |
||
73 | */ |
||
74 | public function setSeleniumPort($port) |
||
78 | |||
79 | /** |
||
80 | * @return int |
||
81 | */ |
||
82 | public function getSeleniumPort() |
||
86 | } |
||
87 |