SDK: Prompt-based locator (#4027)

This commit is contained in:
Stanislav Novosad
2025-11-21 19:13:42 -07:00
committed by GitHub
parent 90f51bcacb
commit 8fb46ef1ca
19 changed files with 899 additions and 4 deletions

View File

@@ -199,6 +199,11 @@ async def run_sdk_action(
data=action.data,
)
result = extract_result
elif action.type == "locate_element":
xpath_result = await page_ai.ai_locate_element(
prompt=action.prompt,
)
result = xpath_result
finally:
skyvern_context.reset()