Skip to content

Commit cb3a24e

Browse files
authored
fix: NameError in _impl/frame.py (#2216)
Fixes ##2215
1 parent f371be9 commit cb3a24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/_impl/_frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _setup_navigation_waiter(self, wait_name: str, timeout: float = None) -> Wai
156156
waiter.reject_on_event(
157157
self._page,
158158
"close",
159-
lambda: cast(Page, self._page)._close_error_with_reason(),
159+
lambda: cast("Page", self._page)._close_error_with_reason(),
160160
)
161161
waiter.reject_on_event(
162162
self._page, "crash", Error("Navigation failed because page crashed!")

0 commit comments

Comments
 (0)