mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-03 19:20:31 +00:00
25 lines
674 B
Python
25 lines
674 B
Python
from enum import StrEnum
|
|
from pathlib import Path
|
|
|
|
# This is the attribute name used to tag interactable elements
|
|
SKYVERN_ID_ATTR: str = "unique_id"
|
|
SKYVERN_DIR = Path(__file__).parent
|
|
REPO_ROOT_DIR = SKYVERN_DIR.parent
|
|
|
|
INPUT_TEXT_TIMEOUT = 120000 # 2 minutes
|
|
PAGE_CONTENT_TIMEOUT = 300 # 5 mins
|
|
|
|
# reserved fields for navigation payload
|
|
SPECIAL_FIELD_VERIFICATION_CODE = "verification_code"
|
|
VERIFICATION_CODE_PLACEHOLDER = "REAL_TOTP_CODE"
|
|
|
|
VERIFICATION_CODE_POLLING_TIMEOUT_MINS = 10
|
|
|
|
|
|
class ScrapeType(StrEnum):
|
|
NORMAL = "normal"
|
|
STOPLOADING = "stoploading"
|
|
RELOAD = "reload"
|
|
|
|
|
|
SCRAPE_TYPE_ORDER = [ScrapeType.NORMAL, ScrapeType.NORMAL, ScrapeType.RELOAD]
|