WebDriverSelectInterface
interface WebDriverSelectInterface (View source)
Models an element of select type, providing helper methods to select and deselect options.
Methods
No description
No description
No description
No description
Select the option at the given index.
Select all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:
Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:
Select all options that display text partially matching the argument. That is, when given "Bar" this would select an option like:
Deselect all options in multiple select tag.
Deselect the option at the given index.
Deselect all options that have value attribute matching the argument. That is, when given "foo" this would deselect an option like:
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
Details
bool
isMultiple()
No description
WebDriverElement[]
getOptions()
No description
WebDriverElement[]
getAllSelectedOptions()
No description
WebDriverElement
getFirstSelectedOption()
No description
selectByIndex(int $index)
Select the option at the given index.
selectByValue(string $value)
Select all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:
;
selectByVisibleText(string $text)
Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:
;
selectByVisiblePartialText(string $text)
Select all options that display text partially matching the argument. That is, when given "Bar" this would select an option like:
;
deselectAll()
Deselect all options in multiple select tag.
deselectByIndex(int $index)
Deselect the option at the given index.
deselectByValue(string $value)
Deselect all options that have value attribute matching the argument. That is, when given "foo" this would deselect an option like:
;
deselectByVisibleText(string $text)
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
;
deselectByVisiblePartialText(string $text)
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
;