Skip to content

DropDownWrapper class

Behaves the same as ValueWrapper + select(). Represents HTML Select

Extends ValueWrapper.

Select option or options from a drop down

// Select multiple values based on array of values provided
await dropDown('Vehicle:').select(['Car','Van'])
// Select multiple values based on array if indices provided
await dropDown('Vehicle:').select({index : [0,1]})
NameTypeDescription
valuesArrayvalue(s) to be selected

This API does not return any values.

Overrides ElementWrapper#elements, but for DropDown elements.

NameTypeDescription
retryIntervalnumberRetry Interval in milliseconds (defaults to global settings).
retryTimeoutnumberRetry Timeout in milliseconds (defaults to global settings).
TypeDescription
Array<DropDown>Array of all elements matching the selector.