INNER CODE UNIT · Python
APIRequestContextDispatcher
feder-cr/invisible_playwright · src/invisible_playwright/_juggler/server.py:146
class APIRequestContextDispatcher(RefusingDispatcher):
TYPE = "APIRequestContext"
REASON = ("APIRequestContext performs HTTP outside the page, which is not "
"browser automation and carries none of the browser fingerprint")
METHODS = {"dispose": "dispose_self"}
def dispose_self(self, params: Dict) -> Any:
self.dispose()
return None
# ── handles ─────────────────────────────────────────────────────────────────
#: What `_retry` prints when an action on a handle times out. The loop takes a
#: selector for its message and never queries it once an element is given, so
#: this is a label rather than a lookup - and `None not actionable in 30s` is
#: what the alternative reads like.
_HANDLE = "<element handle>"