Refactor element retrieval in interactions_service to use an object for coordinates
Build and Push Docker Images / build-and-push (push) Successful in 26s
Build and Push Docker Images / build-and-push (push) Successful in 26s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user