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

Method __init__

webarena/browser_env/html_tools/html_parser.py:11–21  ·  view source on GitHub ↗
(self, ctx: str, args: dict[str]={})

Source from the content-addressed store, hash-verified

9
10class HtmlParser():
11 def __init__(self, ctx: str, args: dict[str]={}) -> None:
12 stt = time.time()
13 self.dom_tree = self.ctx2tree(ctx)
14 # tool related
15 self.bids2label = {}
16 self.bids2xpath = {}
17 self.used_labels = {}
18
19 # parse args
20 self.parse_args(args)
21 self.init_time = time.time() - stt
22
23 def parse_args(self, args: dict[str]={}) -> None:
24 def attr_check(attr, type_model='str'):

Callers

nothing calls this directly

Calls 2

ctx2treeMethod · 0.95
parse_argsMethod · 0.95

Tested by

no test coverage detected