Add DOWNLOAD_FILE action support for cached scripts (#SKY-7656) (#4569)

This commit is contained in:
pedrohsdb
2026-01-28 10:04:20 -08:00
committed by GitHub
parent 39a926d526
commit 20cbdcb401
3 changed files with 65 additions and 5 deletions

View File

@@ -233,6 +233,7 @@ async def personalize_action(
ActionType.WAIT,
ActionType.SOLVE_CAPTCHA,
ActionType.NULL_ACTION,
ActionType.DOWNLOAD_FILE,
]:
return [action]
elif action.action_type == ActionType.TERMINATE:
@@ -246,7 +247,13 @@ async def personalize_action(
def check_for_unsupported_actions(actions: list[Action]) -> None:
supported_actions = [ActionType.INPUT_TEXT, ActionType.WAIT, ActionType.CLICK, ActionType.COMPLETE]
supported_actions = [
ActionType.INPUT_TEXT,
ActionType.WAIT,
ActionType.CLICK,
ActionType.COMPLETE,
ActionType.DOWNLOAD_FILE,
]
supported_actions_with_query = [ActionType.INPUT_TEXT]
for action in actions:
query = action.intention