feat(fetchers): Add argument to control the user data directory

This commit is contained in:
Karim shoair
2025-10-12 04:48:59 +03:00
parent 8c995c936d
commit c34e10faed
4 changed files with 27 additions and 14 deletions
@@ -87,6 +87,7 @@ class PlaywrightConfig(Struct, kw_only=True, frozen=False):
network_idle: bool = False
load_dom: bool = True
wait_selector_state: SelectorWaitStates = "attached"
user_data_dir: str = ""
selector_config: Optional[Dict] = {}
def __post_init__(self):
@@ -134,6 +135,7 @@ class CamoufoxConfig(Struct, kw_only=True, frozen=False):
os_randomize: bool = False
disable_ads: bool = False
geoip: bool = False
user_data_dir: str = ""
selector_config: Optional[Dict] = {}
additional_args: Optional[Dict] = {}