support download by select action (#4009)

This commit is contained in:
LawyZheng
2025-11-17 14:46:32 +08:00
committed by GitHub
parent 84bfba3384
commit abcdf6a033
6 changed files with 154 additions and 130 deletions

View File

@@ -258,9 +258,10 @@ class SolveCaptchaAction(Action):
class SelectOptionAction(WebAction):
action_type: ActionType = ActionType.SELECT_OPTION
option: SelectOption
download: bool = False
def __repr__(self) -> str:
return f"SelectOptionAction(element_id={self.element_id}, option={self.option}, context={self.input_or_select_context})"
return f"SelectOptionAction(element_id={self.element_id}, option={self.option}, context={self.input_or_select_context}, download={self.download})"
###