feat(browsers): add a pre-navigation hook to allow page setup

Solves #238
This commit is contained in:
Karim shoair
2026-04-13 03:57:27 +02:00
parent d19e861e45
commit 5e13d3ece6
7 changed files with 56 additions and 12 deletions
+2
View File
@@ -47,6 +47,7 @@ _FETCH_PARAMS = {
"wait": int | float,
"timezone_id": str | None,
"page_action": Optional[Callable],
"page_setup": Optional[Callable],
"proxy": Optional[str | Dict[str, str] | Tuple],
"extra_headers": Optional[Dict[str, str]],
"timeout": int | float,
@@ -80,6 +81,7 @@ _STEALTHY_FETCH_PARAMS = {
"wait": int | float,
"timezone_id": str | None,
"page_action": Optional[Callable],
"page_setup": Optional[Callable],
"proxy": Optional[str | Dict[str, str] | Tuple],
"extra_headers": Optional[Dict[str, str]],
"timeout": int | float,