revert 'add elements to dropdown confirm prompt' (#807)
This commit is contained in:
@@ -10,9 +10,4 @@ Reply in JSON format with the following keys:
|
||||
{
|
||||
"reasoning": str, // the reason why it's a dropdown menu or not a dropdown menu
|
||||
"is_opened_dropdown_menu": bool, // true if it's a opened dropdown menu, otherwise false.
|
||||
}
|
||||
|
||||
Elements on the screenshot:
|
||||
```
|
||||
{{ elements }}
|
||||
```
|
||||
}
|
||||
@@ -1661,11 +1661,8 @@ async def locate_dropdown_menu(
|
||||
timeout=SettingsManager.get_settings().BROWSER_SCREENSHOT_TIMEOUT_MS
|
||||
)
|
||||
|
||||
# only for detecting the dropdown menu, better to send untrimmed HTML without skyvern attributes
|
||||
dropdown_confirm_prompt = prompt_engine.load_prompt(
|
||||
"opened-dropdown-confirm",
|
||||
elements=head_element.build_HTML(need_trim_element=False, need_skyvern_attrs=False),
|
||||
)
|
||||
# TODO: better to send untrimmed HTML without skyvern attributes in the future
|
||||
dropdown_confirm_prompt = prompt_engine.load_prompt("opened-dropdown-confirm")
|
||||
LOG.debug(
|
||||
"Confirm if it's an opened dropdown menu",
|
||||
step_id=step.step_id,
|
||||
|
||||
Reference in New Issue
Block a user