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]})
Name Type Description
values Array value(s) to be selected

This API does not return any values.

Overrides ElementWrapper#elements, but for DropDown elements.

Name Type Description
retryInterval number Retry Interval in milliseconds (defaults to global settings).
retryTimeout number Retry Timeout in milliseconds (defaults to global settings).
Type Description
Array<DropDown> Array of all elements matching the selector.