diff --git a/skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2 b/skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2 index 4bbaef11e..ea3a7da94 100644 --- a/skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2 +++ b/skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2 @@ -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 }} -``` \ No newline at end of file +} \ No newline at end of file diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index 5467cc7ca..fa8ae0739 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -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,