add reload action validate (#1598)

This commit is contained in:
Shuchang Zheng
2025-01-19 19:56:09 -08:00
committed by GitHub
parent 39bb4558bf
commit 74d9c65e54

View File

@@ -148,6 +148,8 @@ class Action(BaseModel):
return WaitAction.model_validate(value)
elif action_type is ActionType.SOLVE_CAPTCHA:
return SolveCaptchaAction.model_validate(value)
elif action_type is ActionType.RELOAD_PAGE:
return ReloadPageAction.model_validate(value)
else:
raise ValueError(f"Unsupported action type: {action_type}")
else: