We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f14741d commit 37a5aa6Copy full SHA for 37a5aa6
1 file changed
packages/playwright-core/src/tools/backend/tab.ts
@@ -483,7 +483,7 @@ export class Tab extends EventEmitter<TabEventsInterface> {
483
return;
484
}
485
486
- await this.page.evaluate(() => new Promise(f => setTimeout(f, 1000))).catch(() => {});
+ await this.page.evaluate(ms => new Promise(f => setTimeout(f, ms)), time).catch(() => {});
487
488
489
0 commit comments