2024-06-24 23:14:45 +08:00
|
|
|
from enum import StrEnum
|
2024-03-01 10:09:30 -08:00
|
|
|
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
|
2024-06-16 16:33:25 -07:00
|
|
|
|
|
|
|
|
INPUT_TEXT_TIMEOUT = 120000 # 2 minutes
|
2024-07-03 17:17:24 +08:00
|
|
|
PAGE_CONTENT_TIMEOUT = 300 # 5 mins
|
2024-06-24 23:14:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class ScrapeType(StrEnum):
|
|
|
|
|
NORMAL = "normal"
|
|
|
|
|
STOPLOADING = "stoploading"
|
|
|
|
|
RELOAD = "reload"
|
|
|
|
|
|
|
|
|
|
|
2024-07-02 12:33:09 +08:00
|
|
|
SCRAPE_TYPE_ORDER = [ScrapeType.NORMAL, ScrapeType.NORMAL, ScrapeType.RELOAD]
|