isSelected
Return true or false if an <option>
element, or an <input>
element of type
checkbox or radio is currently selected found by given selector.
Usage
1 | client.isSelected(selector).then(callback); |
Parameters
Param | Type | Details |
---|---|---|
selector | String | option element or input of type checkbox or radio |
Example
1 | <select name="selectbox" id="selectbox"> |
1 | client.isSelected('[value="Layla Terry"]').then(function(isSelected) { |