Skip to content

Commit

Permalink
fix: NameError in _impl/frame.py (#2216)
Browse files Browse the repository at this point in the history
Fixes ##2215
  • Loading branch information
obaltian authored Dec 30, 2023
1 parent f371be9 commit cb3a24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playwright/_impl/_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit cb3a24e

Please sign in to comment.