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

Method get_rect_data

webarena/browser_env/html_tools/html_parser.py:415–425  ·  view source on GitHub ↗
(self, bids: list[str])

Source from the content-addressed store, hash-verified

413 return dom
414
415 def get_rect_data(self, bids: list[str]) -> list[dict[str]]:
416 res = []
417 for bid in bids:
418 label = self.bids2label.get(bid, '')
419 rect = self.rect.get(bid, None)
420 res.append({
421 'bid': bid,
422 'label': label,
423 'rect': rect
424 })
425 return res
426

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected