revert 'add elements to dropdown confirm prompt' (#807)

This commit is contained in:
LawyZheng
2024-09-11 12:59:50 +08:00
committed by GitHub
parent f429d6d51e
commit b440981775
2 changed files with 3 additions and 11 deletions

View File

@@ -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 }}
```
}

View File

@@ -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,