mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-05 04:00:21 +00:00
19 lines
484 B
Python
19 lines
484 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
|
|
|
|
|
|
class ScrapeType(StrEnum):
|
|
NORMAL = "normal"
|
|
STOPLOADING = "stoploading"
|
|
RELOAD = "reload"
|
|
|
|
|
|
SCRAPE_TYPE_ORDER = [ScrapeType.NORMAL, ScrapeType.NORMAL, ScrapeType.RELOAD]
|