extend custom selection to date (#1357)

This commit is contained in:
LawyZheng
2024-12-09 14:25:15 +08:00
committed by GitHub
parent 5842bfc1fd
commit 20f30d1224
3 changed files with 7 additions and 1 deletions

View File

@@ -50,4 +50,8 @@ Select History:
```
{{ select_history }}
```
{% endif %}
{% endif %}
Current datetime in UTC, YYYY-MM-DD HH:MM format:
```
{{ utc_datetime }}
```

View File

@@ -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...".

View File

@@ -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(