Skip to content

Commit

Permalink
test: Also retry a browser wait when the helper function is missing
Browse files Browse the repository at this point in the history
This has started to sporadically happen on Firefox during
login/logout.
  • Loading branch information
mvollmer committed Nov 22, 2024
1 parent d1f886b commit b9345ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/common/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,8 @@ def wait_js_cond(self, cond: str, error_description: str = "null") -> None:
"Cannot find context",
# firefox
"MessageHandlerFrame' destroyed",
# page helpers not yet loaded
"ph_wait_cond is not defined",
]):
if time.time() - start < timeout:
webdriver_bidi.log_command.info("wait_js_cond: Ignoring/retrying %r", e)
Expand Down

0 comments on commit b9345ba

Please sign in to comment.