geckordp.actors.web_console module

class geckordp.actors.web_console.WebConsoleActor(*args, **kwargs)

Bases: Actor

https://github.com/mozilla/gecko-dev/blob/master/devtools/shared/specs/webconsole.js

class Listeners(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: str, Enum

https://github.com/mozilla/gecko-dev/blob/aa3ccd258b64abfd4c5ce56c1f512bc7f65b844c/devtools/server/actors/webconsole.js#LL548C17-L548C17 Listeners != Events

CONSOLE_API = 'ConsoleAPI'
DOCUMENT_EVENTS = 'DocumentEvents'
FILE_ACTIVITY = 'FileActivity'
PAGE_ERROR = 'PageError'
REFLOW_ACTIVITY = 'ReflowActivity'
class MessageTypes(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: str, Enum

CONSOLE_API = 'ConsoleAPI'
PAGE_ERROR = 'PageError'
autocomplete(text: str, cursor=0, frame_actor='', selected_node_actor='', authorized_evaluations_json: dict | None = None, expression_vars_json: dict | None = None)
clear_messages_cache()
evaluate_js_async(text: str, eager=False, frame_actor='', selected_node_actor='', selected_object_actor='', inner_window_id=-1, mapped: dict | None = None)
get_cached_messages(message_types: List[MessageTypes])
start_listeners(listeners: List[Listeners])
stop_listeners(listeners: List[Listeners])