Refactor element retrieval in interactions_service to use an object for coordinates
Build and Push Docker Images / build-and-push (push) Successful in 26s

This commit is contained in:
2026-04-02 10:28:06 +02:00
parent fe9b9aee26
commit c6b959aa37
@@ -219,9 +219,8 @@ async def interactions_service(
handle = None
try:
handle = await page.evaluate_handle(
"(x, y) => document.elementFromPoint(x, y)",
vx,
vy,
"(p) => document.elementFromPoint(p.x, p.y)",
{"x": vx, "y": vy},
)
element = handle.as_element()
if element is not None: