* 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)
| 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. |