WebDriverSelect
class WebDriverSelect (View source)
Models a SELECT tag, providing helper methods to select and deselect options.
Methods
No description
No description
No description
No description
Deselect all options in multiple select tag.
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:
Deselect the option at the given index.
Deselect all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:
Deselect all options that display text matching the argument. That is, when given "Bar" this would select an option like:
Convert strings with both quotes and ticks into: foo'"bar -> concat("foo'", '"', "bar")
Details
__construct(WebDriverElement $element)
No description
bool
isMultiple()
No description
WebDriverElement[]
getOptions()
No description
WebDriverElement[]
getAllSelectedOptions()
No description
WebDriverElement
getFirstSelectedOption()
No description
deselectAll()
Deselect all options in multiple select tag.
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:
;
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 select an option like:
;
deselectByVisibleText(string $text)
Deselect all options that display text matching the argument. That is, when given "Bar" this would select an option like:
;
protected string
escapeQuotes(string $to_escape)
Convert strings with both quotes and ticks into: foo'"bar -> concat("foo'", '"', "bar")