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

Function rect2tuple

webarena/browser_env/html_tools/utils.py:93–101  ·  view source on GitHub ↗
(rect: str)

Source from the content-addressed store, hash-verified

91 return result
92
93def rect2tuple(rect: str) -> tuple[int, int, int, int]:
94 if rect is None or type(rect) != type('str'):
95 return None
96 rect = rect.strip()
97 if rect.count(',') != 3:
98 return None
99 rect = rect.split(',')
100 rect = [float(r) for r in rect]
101 return tuple(rect)

Callers 1

is_visibleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected