UNPKG

devtools

Version:

A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer

13 lines (12 loc) 345 B
/** * The Refresh command causes the browser to reload the page in current top-level browsing context. * * @alias browser.refresh * @see https://w3c.github.io/webdriver/#dfn-refresh */ export default async function refresh() { delete this.currentFrame; const page = this.getPageHandle(); await page.reload(); return null; }