wdio-wait-for / element/elementToBeSelected
▸ elementToBeSelected(selectorOrElement
): () => Promise
<boolean
>
A condition for checking an element is visible and selected
example
browser.waitUntil(elementToBeSelected('.btn'));
Name | Type | Description |
---|---|---|
selectorOrElement |
StringOrElement |
The selector or element to check |
fn
An expected condition that returns a promise representing whether the element is selected.
▸ (): Promise
<boolean
>
A condition for checking an element is visible and selected
example
browser.waitUntil(elementToBeSelected('.btn'));
Promise
<boolean
>
An expected condition that returns a promise representing whether the element is selected.