MCPcopy Index your code
hub / github.com/microsoft/playwright-python / _reject

Method _reject

playwright/_impl/_waiter.py:104–111  ·  view source on GitHub ↗
(self, exception: Exception)

Source from the content-addressed store, hash-verified

102 self._wait_for_event_info_after(self._wait_id)
103
104 def _reject(self, exception: Exception) -> None:
105 self._cleanup()
106 if exception:
107 base_class = TimeoutError if isinstance(exception, TimeoutError) else Error
108 exception = base_class(str(exception) + format_log_recording(self._logs))
109 if not self._result.done():
110 self._result.set_exception(exception)
111 self._wait_for_event_info_after(self._wait_id, exception)
112
113 def wait_for_event(
114 self,

Callers 4

on_matchMethod · 0.95
rejectMethod · 0.95
_evaluate_predicateMethod · 0.95
_await_predicateMethod · 0.95

Calls 3

_cleanupMethod · 0.95
format_log_recordingFunction · 0.85

Tested by

no test coverage detected