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

Method mark_id

webarena/browser_env/html_tools/html_parser.py:157–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

155 return self.bids2xpath.get(label, '')
156
157 def mark_id(self) -> None:
158 root = self.get_root(self.dom_tree)
159 _, i2xpath, used_labels = get_xpath_top_down(root, self.id_attr, self.label_attr)
160 self.used_labels = used_labels
161 self.bids2xpath = i2xpath
162
163 def parse(self, root: html.HtmlElement, keep: list[str], obs: list[str], parent_chain: bool=False, get_new_label: bool=False) -> dict[str]:
164 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