HumHub Documentation (unofficial)

WebDriverRadios extends AbstractWebDriverCheckboxOrRadio
in package

Provides helper methods for radio buttons.

Table of Contents

Properties

$element  : WebDriverElement
$name  : string
$type  : string

Methods

__construct()  : mixed
deselectAll()  : mixed
Deselect all options in multiple select tag.
deselectByIndex()  : mixed
Deselect the option at the given index.
deselectByValue()  : mixed
Deselect all options that have value attribute matching the argument. That is, when given "foo" this would deselect an option like:
deselectByVisiblePartialText()  : mixed
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
deselectByVisibleText()  : mixed
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
getAllSelectedOptions()  : array<string|int, WebDriverElement>
getFirstSelectedOption()  : WebDriverElement
getOptions()  : array<string|int, WebDriverElement>
isMultiple()  : bool
selectByIndex()  : mixed
Select the option at the given index.
selectByValue()  : mixed
Select all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:
selectByVisiblePartialText()  : mixed
Select all options that display text partially matching the argument. That is, when given "Bar" this would select an option like:
selectByVisibleText()  : mixed
Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:
byIndex()  : mixed
Selects or deselects a checkbox or a radio button by its index.
byValue()  : mixed
Selects or deselects a checkbox or a radio button by its value.
byVisibleText()  : mixed
Selects or deselects a checkbox or a radio button by its visible text.
deselectOption()  : mixed
Deselects a checkbox or a radio button.
getRelatedElements()  : array<string|int, WebDriverElement>
Gets checkboxes or radio buttons with the same name.
selectOption()  : mixed
Selects a checkbox or a radio button.

Properties

Methods

deselectAll()

Deselect all options in multiple select tag.

public deselectAll() : mixed

deselectByIndex()

Deselect the option at the given index.

public deselectByIndex(mixed $index) : mixed
Parameters
$index : mixed

The index of the option. (0-based)

deselectByValue()

Deselect all options that have value attribute matching the argument. That is, when given "foo" this would deselect an option like:

public deselectByValue(mixed $value) : mixed

<option value="foo">Bar</option>

Parameters
$value : mixed

The value to match against.

deselectByVisiblePartialText()

Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:

public deselectByVisiblePartialText(mixed $text) : mixed

<option value="foo">Foo Bar Baz</option>

Parameters
$text : mixed

The visible text to match against.

deselectByVisibleText()

Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:

public deselectByVisibleText(mixed $text) : mixed

<option value="foo">Bar</option>

Parameters
$text : mixed

The visible text to match against.

isMultiple()

public isMultiple() : bool
Return values
bool

Whether this select element support selecting multiple options.

selectByIndex()

Select the option at the given index.

public selectByIndex(mixed $index) : mixed
Parameters
$index : mixed

The index of the option. (0-based)

selectByValue()

Select all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:

public selectByValue(mixed $value) : mixed

<option value="foo">Bar</option>

Parameters
$value : mixed

The value to match against.

selectByVisiblePartialText()

Select all options that display text partially matching the argument. That is, when given "Bar" this would select an option like:

public selectByVisiblePartialText(mixed $text) : mixed

<option value="bar">Foo Bar Baz</option>

Parameters
$text : mixed

The visible text to match against.

selectByVisibleText()

Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:

public selectByVisibleText(mixed $text) : mixed

<option value="foo">Bar</option>

Parameters
$text : mixed

The visible text to match against.

byVisibleText()

Selects or deselects a checkbox or a radio button by its visible text.

protected byVisibleText(string $text[, bool $partial = false ][, bool $select = true ]) : mixed
Parameters
$text : string
$partial : bool = false
$select : bool = true

        
On this page

Search results