HumHub Documentation (unofficial)

WebDriverCapabilities

Table of Contents

Methods

getBrowserName()  : string
getCapability()  : mixed
getPlatform()  : string
getVersion()  : string
is()  : bool
isJavascriptEnabled()  : bool

Methods

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.


        
On this page

Search results