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
array
getOptions()
No description
array
getAllSelectedOptions()
No description
WebDriverElement
getFirstSelectedOption()
No description
void
deselectAll()
Deselect all options in multiple select tag.
void
selectByIndex(int $index)
Select the option at the given index.
void
selectByValue(string $value)
Select all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:
;
void
selectByVisibleText(string $text)
Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:
;
void
deselectByIndex(int $index)
Deselect the option at the given index.
void
deselectByValue(string $value)
Deselect all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:
;
void
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")