webdriverio
Version:
Next-gen browser and mobile automation test framework for Node.js
20 lines (19 loc) • 814 B
TypeScript
/**
* Reload the document of this browsing context and wait until the new document
* has loaded. Other tabs and frames are not reloaded. A frame reloads only its own
* document and keeps its browsing context, so the object you hold stays usable.
*
* <example>
:refresh.js
it('reloads one frame', async () => {
const page = await browser.url('https://the-internet.herokuapp.com/nested_frames')
const bottom = await page.frame({ selector: 'frame[name="frame-bottom"]' })
await bottom.refresh()
console.log(await bottom.$('body').getText()) // outputs: "BOTTOM", the frame is still usable
})
* </example>
*
* @alias browsingContext.refresh
*/
export declare function refresh(this: WebdriverIO.BrowsingContext): Promise<void>;
//# sourceMappingURL=refresh.d.ts.map