Skip to main content

Interface: WaitForShownOptions

Defined in: packages/core/src/helpers/native/utils.ts:73

"Either hand me the element, or hand me a selector and I will look it up."

This pair recurs across nearly every helper below, which is why it is one named type rather than repeated inline: callers that already hold an element skip the round trip, callers that do not pass a selector instead.

selector is string, not the broader Selector used by the browser helpers: everything in this module funnels through buildSelector(), which does string surgery (.replace(), .slice()) to translate a React Native testID into an Appium locator. A matcher object or function would throw.

Extends​

Properties​

element?​

optional element?: WdioElement;

Defined in: packages/core/src/helpers/native/utils.ts:44

Inherited from​

ElementOrSelector.element


interval?​

optional interval?: number;

Defined in: packages/core/src/helpers/native/utils.ts:58

poll interval in ms; WebdriverIO defaults to 500 when omitted

Inherited from​

WaitOptions.interval


selector?​

optional selector?: string;

Defined in: packages/core/src/helpers/native/utils.ts:45

Inherited from​

ElementOrSelector.selector


timeout?​

optional timeout?: number;

Defined in: packages/core/src/helpers/native/utils.ts:56

Inherited from​

WaitOptions.timeout