Skip to content

Commit 00edf24

Browse files
committed
fix(debug): changed logic for finding window on app launch
1 parent 49aee1c commit 00edf24

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/commands/app.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,6 @@ export async function waitForNewWindow(this: NovaWindowsDriver, pid: number, tim
305305
let attempts = 0;
306306

307307
while (Date.now() - start < timeout) {
308-
// const handles = getWindowAllHandlesForProcessIds([pid]);
309-
310-
// if (handles.length > 0) {
311-
// return handles[handles.length - 1];
312-
// }
313-
314308
const elements = await this.sendPowerShellCommand(AutomationElement.rootElement.findAll(TreeScope.CHILDREN, new PropertyCondition(Property.PROCESS_ID, new PSInt32(pid))).buildCommand());
315309
const elementIds = elements.split('\n').map((id) => id.trim()).filter(Boolean);
316310
if (elementIds.length > 0) {

0 commit comments

Comments
 (0)