diff --git a/playwright/_impl/_transport.py b/playwright/_impl/_transport.py index 124f57823..2ca84d459 100644 --- a/playwright/_impl/_transport.py +++ b/playwright/_impl/_transport.py @@ -167,7 +167,7 @@ async def run(self) -> None: break await asyncio.sleep(0) - await self._proc.wait() + await self._proc.communicate() self._stopped_future.set_result(None) def send(self, message: Dict) -> None: