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
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
130
-
awaitsleep(500);// TODO: make a setting for the sleep timeout
131
+
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
132
+
awaitsleep(SLEEP_INTERVAL_MS);// TODO: make a setting for the sleep timeout
131
133
}
132
134
133
135
thrownewerrors.NoSuchWindowError(`No window was found with name or handle '${nameOrHandle}'.`);
@@ -172,7 +174,7 @@ export async function changeRootElement(this: NovaWindowsDriver, pathOrNativeWin
@@ -185,8 +187,8 @@ export async function changeRootElement(this: NovaWindowsDriver, pathOrNativeWin
185
187
// noop
186
188
}
187
189
188
-
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
189
-
awaitsleep(500);// TODO: make a setting for the sleep timeout
190
+
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
191
+
awaitsleep(SLEEP_INTERVAL_MS);// TODO: make a setting for the sleep timeout
190
192
}
191
193
}else{
192
194
this.log.debug('Detected app path to be in the classic format.');
@@ -210,8 +212,8 @@ export async function changeRootElement(this: NovaWindowsDriver, pathOrNativeWin
210
212
}
211
213
}
212
214
213
-
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
214
-
awaitsleep(500);// TODO: make a setting for the sleep timeout
215
+
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
216
+
awaitsleep(SLEEP_INTERVAL_MS);// TODO: make a setting for the sleep timeout
215
217
}
216
218
}
217
219
@@ -280,30 +282,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
295
-
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
313
+
awaitsleep(SLEEP_INTERVAL_MS);// TODO: make a setting for the sleep timeout
0 commit comments