wdio-wait-for
Version:
a library of conditions that are useful for end-to-end tests
14 lines (13 loc) • 576 B
TypeScript
import type { StringOrElement } from './../utils/element.types';
/**
* A condition for checking an element is visible and enabled such that you can click it
*
* @example
* browser.waitUntil(elementToBeEnabled('.btn'));
*
* @param {!string | ChainablePromiseElement<WebdriverIO.Element>} selectorOrElement The selector or element to check
*
* @returns {!function} An expected condition that returns a promise
* representing whether the element is enabled.
*/
export declare function elementToBeEnabled(selectorOrElement: StringOrElement): () => Promise<boolean>;