UNPKG

devtools

Version:

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

15 lines (14 loc) 486 B
/** * The Back command causes the browser to traverse one step backward * in the joint session history of the current top-level browsing context. * This is equivalent to pressing the back button in the browser chrome or calling `window.history.back`. * * @alias browser.back * @see https://w3c.github.io/webdriver/#dfn-back */ export default async function back() { delete this.currentFrame; const page = this.getPageHandle(); await page.goBack(); return null; }