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

Method switchToWindow

lib/helper/WebDriver.js:2428–2430  ·  view source on GitHub ↗

* Switch to the window with a specified handle. * * ```js * const windows = await I.grabAllWindowHandles(); * // ... do something * await I.switchToWindow( windows[0] ); * * const window = await I.grabCurrentWindowHandle(); * // ... do something * await I.switchToWindow( w

(window)

Source from the content-addressed store, hash-verified

2426 * @param {string} window name of window handle.
2427 */
2428 async switchToWindow(window) {
2429 await this.browser.switchToWindow(window)
2430 }
2431
2432 /**
2433 * {{> closeOtherTabs }}

Callers 7

closeOtherTabsMethod · 0.80
switchToNextTabMethod · 0.80
switchToPreviousTabMethod · 0.80
closeCurrentTabMethod · 0.80
WebDriver_test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected