You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fixed not being able to attach to slow-starting classic apps on session creation ([f25b000](https://github.com/AutomateThePlanet/appium-novawindows-driver/commit/f25b000533be1ef2a7c0bc350bf62a3cd1b60a45))
this.log.info(`Failed to locate window with name '${name}'. Sleeping for 500 milliseconds and retrying... (${i}/20)`);// TODO: make a setting for the number of retries or timeout
140
-
awaitsleep(500);// TODO: make a setting for the sleep timeout
141
+
this.log.info(`Failed to locate window with name '${name}'. Sleeping for ${SLEEP_INTERVAL_MS} milliseconds and retrying... (${i}/20)`);// TODO: make a setting for the number of retries or timeout
142
+
awaitsleep(SLEEP_INTERVAL_MS);// TODO: make a setting for the sleep timeout
141
143
}
142
144
143
145
thrownewerrors.NoSuchWindowError(`No window was found with name or handle '${nameOrHandle}'.`);
@@ -182,7 +184,7 @@ export async function changeRootElement(this: NovaWindowsDriver, pathOrNativeWin
@@ -195,8 +197,8 @@ export async function changeRootElement(this: NovaWindowsDriver, pathOrNativeWin
195
197
// noop
196
198
}
197
199
198
-
this.log.info(`Failed to locate window of the app. Sleeping for 500 milliseconds and retrying... (${i}/20)`);// TODO: make a setting for the number of retries or timeout
199
-
awaitsleep(500);// TODO: make a setting for the sleep timeout
200
+
this.log.info(`Failed to locate window of the app. Sleeping for ${SLEEP_INTERVAL_MS} milliseconds and retrying... (${i}/20)`);// TODO: make a setting for the number of retries or timeout
201
+
awaitsleep(SLEEP_INTERVAL_MS);// TODO: make a setting for the sleep timeout
200
202
}
201
203
}else{
202
204
this.log.debug('Detected app path to be in the classic format.');
@@ -220,8 +222,8 @@ export async function changeRootElement(this: NovaWindowsDriver, pathOrNativeWin
220
222
}
221
223
}
222
224
223
-
this.log.info(`Failed to locate window of the app. Sleeping for 500 milliseconds and retrying... (${i}/20)`);// TODO: make a setting for the number of retries or timeout
224
-
awaitsleep(500);// TODO: make a setting for the sleep timeout
225
+
this.log.info(`Failed to locate window of the app. Sleeping for ${SLEEP_INTERVAL_MS} milliseconds and retrying... (${i}/20)`);// TODO: make a setting for the number of retries or timeout
226
+
awaitsleep(SLEEP_INTERVAL_MS);// TODO: make a setting for the sleep timeout
225
227
}
226
228
}
227
229
@@ -290,30 +292,45 @@ export async function setWindowRect(
this.log.debug(`Detected the following native window handles for the given process IDs: ${nativeWindowHandles.map((handle)=>`0x${handle.toString(16).padStart(8,'0')}`).join(', ')}`);
this.log.info(`The window with handle 0x${nativeWindowHandles[0].toString(16).padStart(8,'0')} is not yet available in the UI Automation tree. Sleeping for 500 milliseconds and retrying... (${i}/20)`);// TODO: make a setting for the number of retries or timeout
305
-
awaitsleep(500);// TODO: make a setting for the sleep timeout
this.log.info(`The window with handle 0x${nativeWindowHandle.toString(16).padStart(8,'0')} is not yet available in the UI Automation tree. Sleeping for ${SLEEP_INTERVAL_MS} milliseconds and retrying... (${i}/20)`);// TODO: make a setting for the number of retries or timeout
323
+
awaitsleep(SLEEP_INTERVAL_MS);// TODO: make a setting for the sleep timeout
0 commit comments