Skip to content

Commit

Permalink
extend custom selection to date (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored Dec 9, 2024
1 parent 5842bfc commit 20f30d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion skyvern/forge/prompts/skyvern/custom-select.j2
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ Select History:
```
{{ select_history }}
```
{% endif %}
{% endif %}
Current datetime in UTC, YYYY-MM-DD HH:MM format:
```
{{ utc_datetime }}
```
1 change: 1 addition & 0 deletions skyvern/forge/prompts/skyvern/opened-dropdown-confirm.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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...".

Expand Down
1 change: 1 addition & 0 deletions skyvern/webeye/actions/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 20f30d1

Please sign in to comment.