From 9c12b4aaf0749d0f9952986119b83af5ff258f46 Mon Sep 17 00:00:00 2001 From: Oleksandr Baltian Date: Sat, 30 Dec 2023 16:52:20 +0100 Subject: [PATCH] fix: impl/_frame.py NameError --- playwright/_impl/_frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright/_impl/_frame.py b/playwright/_impl/_frame.py index 2cfbb7240..2ce4372b6 100644 --- a/playwright/_impl/_frame.py +++ b/playwright/_impl/_frame.py @@ -156,7 +156,7 @@ def _setup_navigation_waiter(self, wait_name: str, timeout: float = None) -> Wai waiter.reject_on_event( self._page, "close", - lambda: cast(Page, self._page)._close_error_with_reason(), + lambda: cast("Page", self._page)._close_error_with_reason(), ) waiter.reject_on_event( self._page, "crash", Error("Navigation failed because page crashed!")