diff --git a/playwright/_impl/_network.py b/playwright/_impl/_network.py index 5fc408042..1ea51e465 100644 --- a/playwright/_impl/_network.py +++ b/playwright/_impl/_network.py @@ -237,9 +237,11 @@ def request(self) -> Request: return from_channel(self._initializer["request"]) async def abort(self, errorCode: str = None) -> None: + self._check_not_handled() await self._race_with_page_close( self._channel.send("abort", locals_to_params(locals())) ) + self._report_handled(True) async def fulfill( self,