Skip to content

Commit 37a5aa6

Browse files
authored
fix(tools): pass time parameter to page.evaluate in waitForTimeout (#41037)
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent f14741d commit 37a5aa6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/playwright-core/src/tools/backend

packages/playwright-core/src/tools/backend/tab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ export class Tab extends EventEmitter<TabEventsInterface> {
483483
return;
484484
}
485485

486-
await this.page.evaluate(() => new Promise(f => setTimeout(f, 1000))).catch(() => {});
486+
await this.page.evaluate(ms => new Promise(f => setTimeout(f, ms)), time).catch(() => {});
487487
}
488488
}
489489

0 commit comments

Comments
 (0)