CUA feature - verification code / 2FA (#2174)

This commit is contained in:
Shuchang Zheng
2025-04-16 17:11:01 -07:00
committed by GitHub
parent 16fe1954c1
commit a9c8a1d889
5 changed files with 86 additions and 26 deletions

View File

@@ -33,6 +33,7 @@ class ActionType(StrEnum):
TYPE = "type"
MOVE = "move"
DRAG = "drag"
VERIFICATION_CODE = "verification_code"
def is_web_action(self) -> bool:
return self in [
@@ -293,6 +294,11 @@ class DragAction(Action):
path: list[tuple[int, int]] = []
class VerificationCodeAction(Action):
action_type: ActionType = ActionType.VERIFICATION_CODE
verification_code: str
class ScrapeResult(BaseModel):
"""
Scraped response from a webpage, including: