class DesiredCapabilities implements WebDriverCapabilities (View source)

Methods

__construct(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()

No description

setJavascriptEnabled(bool $enabled)

This is a htmlUnit-only option.

array
toArray()

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()

No description

Details

__construct(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()

No description

Return Value

bool

Whether javascript is enabled.

DesiredCapabilities setJavascriptEnabled(bool $enabled)

This is a htmlUnit-only option.

array toArray()

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()

No description

Return Value

DesiredCapabilities