From d5d3ec9266112e73451f3e4857fe5421032327e9 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Mon, 19 Apr 2021 08:45:51 +0530 Subject: [PATCH] fix: https://github.com/microsoft/playwright/issues/6223 --- playwright/_impl/_connection.py | 4 ++-- playwright/_impl/_wait_helper.py | 4 ++-- setup.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/playwright/_impl/_connection.py b/playwright/_impl/_connection.py index a9659a9f1..a5f6df3f9 100644 --- a/playwright/_impl/_connection.py +++ b/playwright/_impl/_connection.py @@ -92,13 +92,13 @@ def __init__( if self._parent: self._parent._objects[guid] = self - def _wait_for_event_info_before(self, wait_id: str, name: str) -> None: + def _wait_for_event_info_before(self, wait_id: str, api_name: str) -> None: self._connection._send_message_to_server( self._guid, "waitForEventInfo", { "info": { - "name": name, + "apiName": api_name, "waitId": wait_id, "phase": "before", "stack": capture_call_stack(), diff --git a/playwright/_impl/_wait_helper.py b/playwright/_impl/_wait_helper.py index bf8134d54..896287cc6 100644 --- a/playwright/_impl/_wait_helper.py +++ b/playwright/_impl/_wait_helper.py @@ -26,14 +26,14 @@ class WaitHelper(Generic[T]): - def __init__(self, channel_owner: ChannelOwner, name: str) -> None: + def __init__(self, channel_owner: ChannelOwner, api_name: str) -> None: self._result: asyncio.Future = asyncio.Future() self._wait_id = uuid.uuid4().hex self._loop = channel_owner._loop self._pending_tasks: List[Task] = [] self._channel_owner = channel_owner self._registered_listeners: List[Tuple[EventEmitter, str, Callable]] = [] - channel_owner._wait_for_event_info_before(self._wait_id, name) + channel_owner._wait_for_event_info_before(self._wait_id, api_name) def reject_on_event( self, diff --git a/setup.py b/setup.py index a403456f4..0183b5041 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ from auditwheel.wheeltools import InWheel from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand -driver_version = "1.11.0-next-1618513089000" +driver_version = "1.11.0-next-1618801354000" def extractall(zip: zipfile.ZipFile, path: str) -> None: