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
|
handle = None
|
||||||
try:
|
try:
|
||||||
handle = await page.evaluate_handle(
|
handle = await page.evaluate_handle(
|
||||||
"(x, y) => document.elementFromPoint(x, y)",
|
"(p) => document.elementFromPoint(p.x, p.y)",
|
||||||
vx,
|
{"x": vx, "y": vy},
|
||||||
vy,
|
|
||||||
)
|
)
|
||||||
element = handle.as_element()
|
element = handle.as_element()
|
||||||
if element is not None:
|
if element is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user