@@ -180,6 +180,7 @@ def screenshot(
180180 direct_url : str | Omit = omit ,
181181 domain : str | Omit = omit ,
182182 full_screenshot : Literal ["true" , "false" ] | Omit = omit ,
183+ handle_cookie_popup : Literal ["true" , "false" ] | Omit = omit ,
183184 max_age_ms : int | Omit = omit ,
184185 page : Literal ["login" , "signup" , "blog" , "careers" , "pricing" , "terms" , "privacy" , "contact" ] | Omit = omit ,
185186 timeout_ms : int | Omit = omit ,
@@ -208,6 +209,11 @@ def screenshot(
208209 screenshot capturing all content. If 'false' or not provided, takes a viewport
209210 screenshot (standard browser view).
210211
212+ handle_cookie_popup: Optional parameter to control cookie/consent popup handling. If 'true', the
213+ browser service dismisses cookie consent before capture. If 'false' or not
214+ provided, captures the page without that step. This value is part of the
215+ screenshot cache key.
216+
211217 max_age_ms: Return a cached screenshot if a prior screenshot for the same parameters exists
212218 and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
213219 omitted. Max is 30 days (2592000000 ms). Set to 0 to always capture fresh.
@@ -248,6 +254,7 @@ def screenshot(
248254 "direct_url" : direct_url ,
249255 "domain" : domain ,
250256 "full_screenshot" : full_screenshot ,
257+ "handle_cookie_popup" : handle_cookie_popup ,
251258 "max_age_ms" : max_age_ms ,
252259 "page" : page ,
253260 "timeout_ms" : timeout_ms ,
@@ -790,6 +797,7 @@ async def screenshot(
790797 direct_url : str | Omit = omit ,
791798 domain : str | Omit = omit ,
792799 full_screenshot : Literal ["true" , "false" ] | Omit = omit ,
800+ handle_cookie_popup : Literal ["true" , "false" ] | Omit = omit ,
793801 max_age_ms : int | Omit = omit ,
794802 page : Literal ["login" , "signup" , "blog" , "careers" , "pricing" , "terms" , "privacy" , "contact" ] | Omit = omit ,
795803 timeout_ms : int | Omit = omit ,
@@ -818,6 +826,11 @@ async def screenshot(
818826 screenshot capturing all content. If 'false' or not provided, takes a viewport
819827 screenshot (standard browser view).
820828
829+ handle_cookie_popup: Optional parameter to control cookie/consent popup handling. If 'true', the
830+ browser service dismisses cookie consent before capture. If 'false' or not
831+ provided, captures the page without that step. This value is part of the
832+ screenshot cache key.
833+
821834 max_age_ms: Return a cached screenshot if a prior screenshot for the same parameters exists
822835 and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
823836 omitted. Max is 30 days (2592000000 ms). Set to 0 to always capture fresh.
@@ -858,6 +871,7 @@ async def screenshot(
858871 "direct_url" : direct_url ,
859872 "domain" : domain ,
860873 "full_screenshot" : full_screenshot ,
874+ "handle_cookie_popup" : handle_cookie_popup ,
861875 "max_age_ms" : max_age_ms ,
862876 "page" : page ,
863877 "timeout_ms" : timeout_ms ,
0 commit comments