UNPKG

webdriverio

Version:

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

17 lines • 878 B
type HistoryReadiness = 'none' | 'interactive' | 'complete'; /** * Same mapping `browser.url()` uses for `pageLoadStrategy`. * An unset strategy waits for the complete load, which is the WebDriver default. */ export declare function historyReadiness(strategy: WebdriverIO.Capabilities['pageLoadStrategy']): HistoryReadiness; /** * Traverse the joint session history of a top-level browsing context by one * entry and wait for the readiness `pageLoadStrategy` asks for. That is the * current top-level context, or `targetContext` for a held tab. * * `delta` is only `-1` (back) or `1` (forward). `no such history entry` is * not caught: classic WebDriver rejects the same way. */ export declare function traverseTopLevelHistory(browser: WebdriverIO.Browser, delta: -1 | 1, targetContext?: string): Promise<void>; export {}; //# sourceMappingURL=traverseHistory.d.ts.map