webdriverio
Version:
Next-gen browser and mobile automation test framework for Node.js
13 lines • 857 B
TypeScript
/**
* Wait until React has rendered a root of the page, for at most 5 seconds as resq
* did. `createRoot` marks the container before the app calls `render`, so the
* container is not enough: the wait ends when React has committed a root, also when
* the app renders nothing (`isRendered`). An async function, so that `execute`
* waits for it on WebDriver Classic sessions too.
*/
export declare const waitToLoadReact: () => Promise<void>;
export declare const react$: (selector: string, props: Record<string, unknown>, state: Record<string, unknown>, reactElement?: HTMLElement) => HTMLElement | Text | {
message: string;
} | null | undefined;
export declare const react$$: (selector: string, props: Record<string, unknown>, state: Record<string, unknown>, reactElement?: HTMLElement) => (HTMLElement | Text)[];
//# sourceMappingURL=react.d.ts.map