introduce a way to reload the page (#1597)
This commit is contained in:
@@ -25,6 +25,7 @@ class ActionType(StrEnum):
|
||||
SOLVE_CAPTCHA = "solve_captcha"
|
||||
TERMINATE = "terminate"
|
||||
COMPLETE = "complete"
|
||||
RELOAD_PAGE = "reload_page"
|
||||
|
||||
def is_web_action(self) -> bool:
|
||||
return self in [
|
||||
@@ -161,6 +162,11 @@ class DecisiveAction(Action):
|
||||
errors: list[UserDefinedError] = []
|
||||
|
||||
|
||||
# TODO: consider to implement this as a WebAction in the future
|
||||
class ReloadPageAction(Action):
|
||||
action_type: ActionType = ActionType.RELOAD_PAGE
|
||||
|
||||
|
||||
class ClickAction(WebAction):
|
||||
action_type: ActionType = ActionType.CLICK
|
||||
file_url: str | None = None
|
||||
|
||||
Reference in New Issue
Block a user