MCPcopy
hub / github.com/MetaMask/metamask-extension / getAllWindowHandles

Method getAllWindowHandles

test/e2e/webdriver/driver.js:1273–1278  ·  view source on GitHub ↗

* Retrieves the handles of all open window tabs in the browser session. * * @returns {Promise >} A promise that will * be resolved with an array of window handles.

()

Source from the content-addressed store, hash-verified

1271 * be resolved with an array of window handles.
1272 */
1273 async getAllWindowHandles() {
1274 if (this.windowHandles) {
1275 return await this.windowHandles.getAllWindowHandles();
1276 }
1277 return await this.driver.getAllWindowHandles();
1278 }
1279
1280 /**
1281 * Retrieves the handle of the current active window or tab.

Callers 12

waitForWindowToCloseMethod · 0.95
closeAllOtherTabsMethod · 0.95
onboarding.spec.tsFile · 0.45
buildMethod · 0.45
quitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected