We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d33a284 commit 6dae4d3Copy full SHA for 6dae4d3
test/index.js
@@ -397,7 +397,13 @@ const getDeviceName = ({
397
}","reason": "${reason}"}}`
398
);
399
400
- await driver.quit();
+ try {
401
+ const sessionId = await driver.getSession();
402
+ console.log({ sessionId: sessionId?.id_ });
403
+ if (sessionId?.id_) await driver.quit();
404
+ } catch (error) {
405
+ // Do nothing when driver is already closed
406
+ }
407
}
408
};
409
0 commit comments