INNER CODE UNIT · Python
call
feder-cr/invisible_playwright · src/invisible_playwright/_juggler/server.py:118
def call(self, method: str, params: Dict) -> Any:
if method in self.METHODS:
return super().call(method, params)
raise ProtocolException(
"%s.%s is outside what invisible_playwright implements: %s. This "
"is a deliberate refusal, not a gap - see "
"32-stacco-da-playwright.md section 5.4."
% (self.TYPE, method, self.REASON))
class TracingDispatcher(RefusingDispatcher):
TYPE = "Tracing"
REASON = ("tracing is outside the automation core; it records a session "
"for the trace viewer and drives none of it")
METHODS = {"tracingStop": "stop_noop", "tracingStopChunk": "stop_noop"}
def stop_noop(self, params: Dict) -> Any:
# ⛔ These two answer instead of refusing because `close()` calls them