SDK: Prompt-based locator (#4027)
This commit is contained in:
committed by
GitHub
parent
90f51bcacb
commit
8fb46ef1ca
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user