geckordp.actors.walker module
- class geckordp.actors.walker.WalkerActor(*args, **kwargs)
Bases:
Actor
https://github.com/mozilla/gecko-dev/blob/master/devtools/shared/specs/walker.js
- class Position(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
str
,Enum
https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML#parameters
- AFTER_BEGIN = 'afterBegin'
- AFTER_END = 'afterEnd'
- BEFORE_BEGIN = 'beforeBegin'
- BEFORE_END = 'beforeEnd'
- class PseudoClass(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
str
,Enum
- ACTIVE = ':active'
- FOCUS = ':focus'
- FOCUS_VISIBLE = ':focus-visible'
- FOCUS_WITHIN = ':focus-within'
- HOVER = ':hover'
- TARGET = ':target'
- VISITED = ':visited'
- add_pseudo_class_lock(dom_node_actor: str, pseudo_class: PseudoClass, parents: bool)
- cancel_pick()
- children(dom_node_actor: str, max_nodes=1000, center_node='', start_node='', what_to_show='')
- clear_picker()
- clear_pseudo_class_locks(dom_node_actor: str)
- document(dom_node_actor='')
- document_element(dom_node_actor: str)
- duplicate_node(dom_node_actor: str)
- edit_tag_name(dom_node_actor: str, tag_name: str)
- find_inspecting_node()
- get_embedder_element(browsing_context_id: str)
- get_layout_inspector()
- get_mutations(cleanup: bool)
- get_node_actor_from_content_dom_reference(content_dom_ref: str)
- get_node_actor_from_window_id(window_id: str)
- get_node_from_actor(actor_id: str, paths: List[str] | None = None)
- get_offset_parent(dom_node_actor: str)
- get_overflow_causing_elements(dom_node_actor: str)
- get_parent_grid_node(dom_node_actor: str)
- get_scrollable_ancestor_node(dom_node_actor: str)
- get_style_sheet_owner_node(style_sheet_actor_id: str)
- get_suggestions_for_query(completing: str, query='', selector_state='tag')
- hide_node(dom_node_actor: str)
- inner_html(dom_node_actor: str)
- insert_adjacent_html(dom_node_actor: str, position: Position, value: str)
see https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML
- insert_before(dom_node_actor: str, parent_dom_node_actor: str, sibling_dom_node_actor='')
- is_in_dom_tree(dom_node_actor: str)
- next_sibling(dom_node_actor: str, what_to_show='')
- outer_html(dom_node_actor: str)
- pick(focus: bool, is_local_tab: bool)
- previous_sibling(dom_node_actor: str, what_to_show='')
- query_selector(dom_node_actor: str, selector: str)
- query_selector_all(dom_node_actor: str, selector: str)
- release()
- release_node(dom_node_actor: str)
- remove_node(dom_node_actor: str)
- remove_nodes(dom_node_actors: List[str])
- remove_pseudo_class_lock(dom_node_actor: str, pseudo_class: PseudoClass, parents: bool)
- retain_node(dom_node_actor: str)
- search(query)
- set_inner_html(dom_node_actor: str, value: str)
- set_mutation_breakpoints(dom_node_actor: str, subtree: bool, removal: bool, attribute: bool)
- set_outer_html(dom_node_actor: str, value: str)
- unhide_node(dom_node_actor: str)
- unretain_node(dom_node_actor: str)
- watch_root_node()