MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / closeCurrentTab

Method closeCurrentTab

lib/helper/WebDriver.js:2840–2844  ·  view source on GitHub ↗

* {{> closeCurrentTab }}

()

Source from the content-addressed store, hash-verified

2838 * {{> closeCurrentTab }}
2839 */
2840 async closeCurrentTab() {
2841 await this.browser.closeWindow()
2842 const handles = await this.browser.getWindowHandles()
2843 if (handles[0]) await this.browser.switchToWindow(handles[0])
2844 }
2845
2846 /**
2847 * {{> openNewTab }}

Callers

nothing calls this directly

Calls 1

switchToWindowMethod · 0.80

Tested by

no test coverage detected