Skip to content

Commit

Permalink
🔄 synced local 'skyvern/' with remote 'skyvern/'
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add support for `RELOAD_PAGE` action type in `validate()` method of `Action` class.
>
>   - **Behavior**:
>     - Add support for `RELOAD_PAGE` action type in `validate()` method of `Action` class in `actions.py`.
>     - Returns `ReloadPageAction` for `RELOAD_PAGE` action type.
>   - **Misc**:
>     - No changes to existing action types or logic.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for ad07ae2c3da997dff8291ad8e03cc9fe9cb3ebda. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
wintonzheng committed Jan 20, 2025
1 parent 39bb455 commit adcef7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skyvern/webeye/actions/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def validate(cls: Type[T], value: Any) -> T:
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:
Expand Down

0 comments on commit adcef7a

Please sign in to comment.