Skip to content

Commit 6a070a0

Browse files
authored
chore: restore page-side timeout (#213)
1 parent 6481100 commit 6a070a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ ${code.join('\n')}
199199

200200
async waitForTimeout(time: number) {
201201
if (this._currentTab && !this._javaScriptBlocked())
202-
await this._currentTab.page.waitForTimeout(time);
202+
await this._currentTab.page.evaluate(() => new Promise(f => setTimeout(f, 1000)));
203203
else
204204
await new Promise(f => setTimeout(f, time));
205205
}

0 commit comments

Comments
 (0)