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

Method waitForControllersLoaded

test/e2e/webdriver/driver.js:1156–1161  ·  view source on GitHub ↗

* Waits for the controllers to be loaded on the page. * * This function waits until an element with the class 'controller-loaded' is located, * indicating that the controllers have finished loading. * * @param {number} [timeout] - optional timeout in milliseconds for waiting for the c

(timeout = 10000)

Source from the content-addressed store, hash-verified

1154 * @throws {Error} Will throw an error if the element is not located within the timeout period.
1155 */
1156 async waitForControllersLoaded(timeout = 10000) {
1157 await this.driver.wait(
1158 until.elementLocated(this.buildLocator('.controller-loaded')),
1159 timeout,
1160 );
1161 }
1162
1163 /**
1164 * Retrieves the current URL of the browser session.

Callers 3

navigateMethod · 0.95
waitForRestartFunction · 0.80

Calls 2

buildLocatorMethod · 0.95
waitMethod · 0.80

Tested by 1

waitForRestartFunction · 0.64