try to fix screenshot timeout (#502)

This commit is contained in:
LawyZheng
2024-06-24 23:14:45 +08:00
committed by GitHub
parent 623c8c09b7
commit 6140cc59f0
5 changed files with 127 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
from enum import StrEnum
from pathlib import Path
# This is the attribute name used to tag interactable elements
@@ -6,3 +7,12 @@ SKYVERN_DIR = Path(__file__).parent
REPO_ROOT_DIR = SKYVERN_DIR.parent
INPUT_TEXT_TIMEOUT = 120000 # 2 minutes
class ScrapeType(StrEnum):
NORMAL = "normal"
STOPLOADING = "stoploading"
RELOAD = "reload"
SCRAPE_TYPE_ORDER = [ScrapeType.NORMAL, ScrapeType.STOPLOADING, ScrapeType.RELOAD]