UNPKG

devtools

Version:

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

13 lines (12 loc) 404 B
/** * The Delete Session command closes any top-level browsing contexts associated * with the current session, terminates the connection, and finally closes the current session. * * @alias browser.deleteSession * @see https://w3c.github.io/webdriver/#dfn-delete-session */ export default async function deleteSession() { await this.browser.close(); this.windows.clear(); return null; }