Skip to content

Commit 6939e0f

Browse files
authored
chore: fix page.pause() (microsoft#1749)
chore: fix page.pause
1 parent 5ba8225 commit 6939e0f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

playwright/_impl/_page.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,10 @@ def request(self) -> "APIRequestContext":
955955

956956
async def pause(self) -> None:
957957
await asyncio.wait(
958-
[self._browser_context._pause(), self._closed_or_crashed_future],
958+
[
959+
asyncio.create_task(self._browser_context._pause()),
960+
self._closed_or_crashed_future,
961+
],
959962
return_when=asyncio.FIRST_COMPLETED,
960963
)
961964

0 commit comments

Comments
 (0)