Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend custom selection to date #1357

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading