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:
1 parent
fe9b9aee26
commit
c6b959aa37
1 file changed
+2
-3
@@ -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