UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

40 lines • 1.39 kB
type WaitState = 'none' | 'interactive' | 'networkIdle' | 'complete'; export interface UrlCommandOptions { /** * The desired state the requested resource should be in before finishing the command. * @default 'complete' */ wait?: WaitState; /** * Headers to be sent with the request. * @default {} */ headers?: Record<string, string>; /** * Basic authentication credentials. * Note: this will overwrite the existing `Authorization` header if provided in the `headers` option. */ auth?: { user: string; pass: string; }; /** * How long to wait for network idle, in milliseconds. * Requires `wait: 'networkIdle'`. * @default 5000 */ timeout?: number; /** * A function called before the page has loaded its resources. * It is serialized and executed in the browser context for this navigation only. */ onBeforeLoad?: Function; } /** * Navigate one browsing context and return the document request, when BiDi * reported a navigation id. `context` is the value passed to * `browsingContext.navigate` (a context id). */ export declare function navigateInContext(browser: WebdriverIO.Browser, context: string, path: string, options?: UrlCommandOptions): Promise<WebdriverIO.Request | undefined>; export {}; //# sourceMappingURL=navigateInContext.d.ts.map