Skip to content

Commit 20f30d1

Browse files
authored
extend custom selection to date (#1357)
1 parent 5842bfc commit 20f30d1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

skyvern/forge/prompts/skyvern/custom-select.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ Select History:
5050
```
5151
{{ select_history }}
5252
```
53-
{% endif %}
53+
{% endif %}
54+
Current datetime in UTC, YYYY-MM-DD HH:MM format:
55+
```
56+
{{ utc_datetime }}
57+
```

skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ There is a screenshot from a part of a web HTML page. Help me confirm if it is a
22

33
An open dropdown menu can be defined as:
44
- At least one option is visible in the screenshot.
5+
- A calendar view or date picker could be considered as an open dropdown menu.
56
- Do not consider it an open dropdown menu if the only visible option displays a message like "No results" or "No match".
67
- Do not consider it an open dropdown menu if the only visible element displays a placeholder like "Please select", "-", or "Select...".
78

skyvern/webeye/actions/handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,7 @@ async def select_from_dropdown(
18791879
navigation_payload_str=json.dumps(task.navigation_payload),
18801880
elements=html,
18811881
select_history=json.dumps(build_sequential_select_history(select_history)) if select_history else "",
1882+
utc_datetime=datetime.utcnow().strftime("%Y-%m-%d %H:%M"),
18821883
)
18831884

18841885
LOG.info(

0 commit comments

Comments
 (0)