selectByVisibleText
Select option with displayed text matching the argument.
Usage
1 | browser.selectByVisibleText(selector,text); |
Parameters
Param | Type | Details |
---|---|---|
selector | String | select element that contains the options |
text | String | text of option element to get selected |
Example
1 | <select id="selectbox"> |
1 | it('demonstrate the selectByVisibleText command', function () { |