Remove interact verify endpoint
All checks were successful
python-syntax / syntax-check (push) Successful in 31s
All checks were successful
python-syntax / syntax-check (push) Successful in 31s
This commit is contained in:
@@ -58,26 +58,7 @@ def main():
|
||||
)
|
||||
click_text.raise_for_status()
|
||||
click_data = click_text.json()["data"]
|
||||
target = click_data["resolved_target"]
|
||||
verify = requests.post(
|
||||
f"{BASE_URL}/interact/verify",
|
||||
headers=headers,
|
||||
json={
|
||||
"action": {"screen": SCREEN, "action": {"action": "click", "target": {"mode": "pixel", "x": target["x"], "y": target["y"]}}},
|
||||
"verify": {
|
||||
"type": "ocr_text_near_point",
|
||||
"text": label,
|
||||
"x": target["x"],
|
||||
"y": target["y"],
|
||||
"radius": 150,
|
||||
"screen": SCREEN,
|
||||
},
|
||||
"timeout_ms": 1500,
|
||||
},
|
||||
timeout=30,
|
||||
)
|
||||
verify.raise_for_status()
|
||||
print("verify:", verify.json()["data"]["verified"])
|
||||
print("clicked:", click_data["resolved_target"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user