HumHub Documentation (unofficial)

DesiredCapabilities
in package
implements WebDriverCapabilities

Table of Contents

Interfaces

WebDriverCapabilities

Properties

$capabilities  : array<string|int, mixed>
$ossToW3c  : array<string|int, mixed>

Methods

__construct()  : mixed
android()  : static
chrome()  : static
createFromW3cCapabilities()  : mixed
firefox()  : static
getBrowserName()  : string
getCapability()  : mixed
getPlatform()  : string
getVersion()  : string
htmlUnit()  : static
htmlUnitWithJS()  : static
internetExplorer()  : static
ipad()  : static
iphone()  : static
is()  : bool
isJavascriptEnabled()  : bool
microsoftEdge()  : static
opera()  : static
phantomjs()  : static
safari()  : static
setBrowserName()  : DesiredCapabilities
setCapability()  : DesiredCapabilities
setJavascriptEnabled()  : DesiredCapabilities
This is a htmlUnit-only option.
setPlatform()  : DesiredCapabilities
setVersion()  : DesiredCapabilities
toArray()  : array<string|int, mixed>
toW3cCompatibleArray()  : array<string|int, mixed>
get()  : mixed
set()  : DesiredCapabilities

Properties

$ossToW3c

private static array<string|int, mixed> $ossToW3c = [\Facebook\WebDriver\Remote\WebDriverCapabilityType::PLATFORM => 'platformName', \Facebook\WebDriver\Remote\WebDriverCapabilityType::VERSION => 'browserVersion', \Facebook\WebDriver\Remote\WebDriverCapabilityType::ACCEPT_SSL_CERTS => 'acceptInsecureCerts']

Methods

__construct()

public __construct([array<string|int, mixed> $capabilities = [] ]) : mixed
Parameters
$capabilities : array<string|int, mixed> = []

createFromW3cCapabilities()

public static createFromW3cCapabilities([array<string|int, mixed> $capabilities = [] ]) : mixed
Parameters
$capabilities : array<string|int, mixed> = []

getBrowserName()

public getBrowserName() : string
Return values
string

The name of the browser.

getCapability()

public getCapability(string $name) : mixed
Parameters
$name : string
Return values
mixed

The value of a capability.

getPlatform()

public getPlatform() : string
Return values
string

The name of the platform.

getVersion()

public getVersion() : string
Return values
string

The version of the browser.

is()

public is(string $capability_name) : bool
Parameters
$capability_name : string
Return values
bool

Whether the value is not null and not false.

isJavascriptEnabled()

public isJavascriptEnabled() : bool
Tags
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 values
bool

Whether javascript is enabled.

phantomjs()

public static phantomjs() : static
Tags
deprecated

PhantomJS is no longer developed and its support will be removed in next major version. Use headless Chrome or Firefox instead.

Return values
static

toArray()

public toArray() : array<string|int, mixed>
Tags
todo

Remove side-effects - not change eg. ChromeOptions::CAPABILITY from instance of ChromeOptions to an array

Return values
array<string|int, mixed>

toW3cCompatibleArray()

public toW3cCompatibleArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

get()

private get(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null

        
On this page

Search results