MCPcopy Create free account
hub / github.com/THUDM/AutoWebGLM / mark_id

Method mark_id

miniwob++/html_tools/html_parser.py:152–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 return self.bids2xpath.get(label, '')
151
152 def mark_id(self) -> None:
153 root = self.get_root(self.dom_tree)
154 _, i2xpath, used_labels = get_xpath_top_down(root, self.id_attr)
155 self.used_labels = used_labels
156 self.bids2xpath = i2xpath
157
158 def parse(self, root: html.HtmlElement, keep: list[str], obs: list[str], parent_chain: bool=False, get_new_label: bool=False) -> dict[str]:
159 def get_text(str: str) -> str:

Callers 1

parse_argsMethod · 0.95

Calls 2

get_rootMethod · 0.95
get_xpath_top_downFunction · 0.70

Tested by

no test coverage detected