* Deselects all selected options * @returns {Promise }
()
| 347 | * @returns {Promise<void>} |
| 348 | */ |
| 349 | async deselectAll() { |
| 350 | if (!this.isMultiple()) { |
| 351 | throw new Error('You may only deselect all options of a multi-select') |
| 352 | } |
| 353 | |
| 354 | const options = await this.getOptions() |
| 355 | |
| 356 | for (let option of options) { |
| 357 | if (await option.isSelected()) { |
| 358 | await option.click() |
| 359 | } |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * |
nothing calls this directly
no test coverage detected