Select or deselect specified option @param option The option which state needs to be changed @param select Indicates whether the option needs to be selected (true) or deselected (false)
(WebElement option, boolean select)
| 328 | * @param select Indicates whether the option needs to be selected (true) or deselected (false) |
| 329 | */ |
| 330 | private void setSelected(WebElement option, boolean select) { |
| 331 | assertOptionIsEnabled(option, select); |
| 332 | if (option.isSelected() != select) { |
| 333 | option.click(); |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | /** |
| 338 | * @param text The visible text to match against. It can be a partial match of the option if |
no test coverage detected