diff --git a/skyvern/forge/prompts/skyvern/custom-select.j2 b/skyvern/forge/prompts/skyvern/custom-select.j2 index 0e6c6d685..56e63071c 100644 --- a/skyvern/forge/prompts/skyvern/custom-select.j2 +++ b/skyvern/forge/prompts/skyvern/custom-select.j2 @@ -50,4 +50,8 @@ Select History: ``` {{ select_history }} ``` -{% endif %} \ No newline at end of file +{% endif %} +Current datetime in UTC, YYYY-MM-DD HH:MM format: +``` +{{ utc_datetime }} +``` \ No newline at end of file diff --git a/skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2 b/skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2 index 12b8d9a2d..9e147fb16 100644 --- a/skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2 +++ b/skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2 @@ -2,6 +2,7 @@ There is a screenshot from a part of a web HTML page. Help me confirm if it is a An open dropdown menu can be defined as: - At least one option is visible in the screenshot. + - A calendar view or date picker could be considered as an open dropdown menu. - Do not consider it an open dropdown menu if the only visible option displays a message like "No results" or "No match". - Do not consider it an open dropdown menu if the only visible element displays a placeholder like "Please select", "-", or "Select...". diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index 3961bda21..a58cc7ef7 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -1879,6 +1879,7 @@ async def select_from_dropdown( navigation_payload_str=json.dumps(task.navigation_payload), elements=html, select_history=json.dumps(build_sequential_select_history(select_history)) if select_history else "", + utc_datetime=datetime.utcnow().strftime("%Y-%m-%d %H:%M"), ) LOG.info(