/
WebDriverCapabilities.php
46 lines (38 loc) · 1.04 KB
/
WebDriverCapabilities.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
namespace Facebook\WebDriver;
interface WebDriverCapabilities
{
/**
* @return string The name of the browser.
*/
public function getBrowserName();
/**
* @param string $name
* @return mixed The value of a capability.
*/
public function getCapability($name);
/**
* @return string The name of the platform.
*/
public function getPlatform();
/**
* @return string The version of the browser.
*/
public function getVersion();
/**
* @param string $capability_name
* @return bool Whether the value is not null and not false.
*/
public function is($capability_name);
/**
* @todo Remove in next major release (BC)
* @deprecated All browsers are always JS enabled except HtmlUnit and it's not meaningful to disable JS execution.
* @return bool Whether javascript is enabled.
*/
public function isJavascriptEnabled();
// TODO: Add in next major release (BC)
///**
// * @return array
// */
//public function toArray();
}