Classes
Methods
(async) deselectById(selectId) → {Promise.<void>}
Deselects all options in a `
Parameters:
Name | Type | Description |
---|---|---|
selectId | string | The ID of the ` |
Throws:
- Throws an error if the `
- Type
- Error
Returns:
A promise that resolves when all options are deselected.
- Type:
- Promise.<void>
(async) getSelectedValueById(selectId) → {Promise.<string>}
Retrieves the value of the selected option in a `
Parameters:
Name | Type | Description |
---|---|---|
selectId | string | The ID of the ` |
Throws:
- Throws an error if the `
- Type
- Error
Returns:
A promise that resolves with the value of the selected option.
- Type:
- Promise.<string>
(async) getValuesById(selectId) → {Promise.<Array.<string>>}
Retrieves all option values in a `
Parameters:
Name | Type | Description |
---|---|---|
selectId | string | The ID of the ` |
Throws:
- Throws an error if the `
- Type
- Error
Returns:
A promise that resolves with an array of the values of the options.
- Type:
- Promise.<Array.<string>>
(async) selectByIdAndIndex(selectId, index) → {Promise.<void>}
Selects an option in a `
Parameters:
Name | Type | Description |
---|---|---|
selectId | string | The ID of the ` |
index | number | The index of the option to select. |
Throws:
- Throws an error if the `
- Type
- Error
Returns:
A promise that resolves when the option is selected.
- Type:
- Promise.<void>
(async) selectByIdAndValue(selectId, value) → {Promise.<void>}
Selects an option in a `
Parameters:
Name | Type | Description |
---|---|---|
selectId | string | The ID of the ` |
value | string | The value of the option to select. |
Throws:
- Throws an error if the `
- Type
- Error
Returns:
A promise that resolves when the option is selected.
- Type:
- Promise.<void>
(async) selectByNameAndIndex(selectName, index) → {Promise.<void>}
Selects an option in a `
Parameters:
Name | Type | Description |
---|---|---|
selectName | string | The name of the ` |
index | number | The index of the option to select. |
Throws:
- Throws an error if the `
- Type
- Error
Returns:
A promise that resolves when the option is selected.
- Type:
- Promise.<void>
(async) selectByNameAndValue(selectName, value) → {Promise.<void>}
Selects an option in a `
Parameters:
Name | Type | Description |
---|---|---|
selectName | string | The name of the ` |
value | string | The value of the option to select. |
Throws:
- Throws an error if the `
- Type
- Error
Returns:
A promise that resolves when the option is selected.
- Type:
- Promise.<void>