@@ -75,6 +75,7 @@ def create(
7575 invocation_id : str | NotGiven = NOT_GIVEN ,
7676 persistence : BrowserPersistenceParam | NotGiven = NOT_GIVEN ,
7777 stealth : bool | NotGiven = NOT_GIVEN ,
78+ timeout_seconds : int | NotGiven = NOT_GIVEN ,
7879 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7980 # The extra values given here take precedence over values defined on the client or passed to this method.
8081 extra_headers : Headers | None = None ,
@@ -96,6 +97,10 @@ def create(
9697 stealth: If true, launches the browser in stealth mode to reduce detection by anti-bot
9798 mechanisms.
9899
100+ timeout_seconds: The number of seconds of inactivity before the browser session is terminated.
101+ Only applicable to non-persistent browsers. Activity includes CDP connections
102+ and live view connections. Defaults to 60 seconds.
103+
99104 extra_headers: Send extra headers
100105
101106 extra_query: Add additional query parameters to the request
@@ -112,6 +117,7 @@ def create(
112117 "invocation_id" : invocation_id ,
113118 "persistence" : persistence ,
114119 "stealth" : stealth ,
120+ "timeout_seconds" : timeout_seconds ,
115121 },
116122 browser_create_params .BrowserCreateParams ,
117123 ),
@@ -281,6 +287,7 @@ async def create(
281287 invocation_id : str | NotGiven = NOT_GIVEN ,
282288 persistence : BrowserPersistenceParam | NotGiven = NOT_GIVEN ,
283289 stealth : bool | NotGiven = NOT_GIVEN ,
290+ timeout_seconds : int | NotGiven = NOT_GIVEN ,
284291 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
285292 # The extra values given here take precedence over values defined on the client or passed to this method.
286293 extra_headers : Headers | None = None ,
@@ -302,6 +309,10 @@ async def create(
302309 stealth: If true, launches the browser in stealth mode to reduce detection by anti-bot
303310 mechanisms.
304311
312+ timeout_seconds: The number of seconds of inactivity before the browser session is terminated.
313+ Only applicable to non-persistent browsers. Activity includes CDP connections
314+ and live view connections. Defaults to 60 seconds.
315+
305316 extra_headers: Send extra headers
306317
307318 extra_query: Add additional query parameters to the request
@@ -318,6 +329,7 @@ async def create(
318329 "invocation_id" : invocation_id ,
319330 "persistence" : persistence ,
320331 "stealth" : stealth ,
332+ "timeout_seconds" : timeout_seconds ,
321333 },
322334 browser_create_params .BrowserCreateParams ,
323335 ),
0 commit comments