selectByAttribute
Select option with a specific value.
Usage
1 | browser.selectByAttribute(selector,attribute,value); |
Parameters
Param | Type | Details |
---|---|---|
selector | String | select element that contains the options |
attribute | String | attribute of option element to get selected |
value | String | value of option element to get selected |
Example
1 | <select id="selectbox"> |
1 | it('should demonstrate the selectByAttribute command', function () { |