class DesiredCapabilities implements WebDriverCapabilities (View source)

Methods

__construct(array $capabilities = [])

No description

static 
createFromW3cCapabilities(array $capabilities = [])

No description

string
getBrowserName()

No description

setBrowserName(string $browser_name)

No description

string
getVersion()

No description

setVersion(string $version)

No description

mixed
getCapability(string $name)

No description

setCapability(string $name, mixed $value)

No description

string
getPlatform()

No description

setPlatform(string $platform)

No description

bool
is(string $capability_name)

No description

bool
isJavascriptEnabled() deprecated

No description

setJavascriptEnabled(bool $enabled)

This is a htmlUnit-only option.

array
toArray()

No description

array
toW3cCompatibleArray()

No description

android()

No description

chrome()

No description

firefox()

No description

htmlUnit()

No description

htmlUnitWithJS()

No description

internetExplorer()

No description

microsoftEdge()

No description

iphone()

No description

ipad()

No description

opera()

No description

safari()

No description

phantomjs() deprecated

No description

Details

__construct(array $capabilities = [])

No description

Parameters

array $capabilities

static createFromW3cCapabilities(array $capabilities = [])

No description

Parameters

array $capabilities

string getBrowserName()

No description

Return Value

string

The name of the browser.

DesiredCapabilities setBrowserName(string $browser_name)

No description

Parameters

string $browser_name

Return Value

DesiredCapabilities

string getVersion()

No description

Return Value

string

The version of the browser.

DesiredCapabilities setVersion(string $version)

No description

Parameters

string $version

Return Value

DesiredCapabilities

mixed getCapability(string $name)

No description

Parameters

string $name

Return Value

mixed

The value of a capability.

DesiredCapabilities setCapability(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

DesiredCapabilities

string getPlatform()

No description

Return Value

string

The name of the platform.

DesiredCapabilities setPlatform(string $platform)

No description

Parameters

string $platform

Return Value

DesiredCapabilities

bool is(string $capability_name)

No description

Parameters

string $capability_name

Return Value

bool

Whether the value is not null and not false.

bool isJavascriptEnabled() deprecated

deprecated All browsers are always JS enabled except HtmlUnit and it's not meaningful to disable JS execution.

No description

Remove in next major release (BC)

Return Value

bool

Whether javascript is enabled.

DesiredCapabilities setJavascriptEnabled(bool $enabled)

This is a htmlUnit-only option.

array toArray()

No description

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

Return Value

array

array toW3cCompatibleArray()

No description

Return Value

array

static DesiredCapabilities android()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities chrome()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities firefox()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities htmlUnit()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities htmlUnitWithJS()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities internetExplorer()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities microsoftEdge()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities iphone()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities ipad()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities opera()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities safari()

No description

Return Value

DesiredCapabilities

static DesiredCapabilities phantomjs() deprecated

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

No description

Return Value

DesiredCapabilities