MCPcopy Create free account
hub / github.com/Vinyzu/Botright / roundbox

Function roundbox

tests/playwright_tests/test_element_handle.py:115–121  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

113 )
114
115 def roundbox(b):
116 return {
117 "x": round(b["x"] * 100),
118 "y": round(b["y"] * 100),
119 "width": round(b["width"] * 100),
120 "height": round(b["height"] * 100),
121 }
122
123 assert roundbox(box) == roundbox(web_bounding_box)
124

Calls

no outgoing calls

Tested by

no test coverage detected