File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,9 @@ async def connect_local_browser(
182182
183183 # Prepare Launch Options (translate keys if needed)
184184 launch_options = {
185- "headless" : local_browser_launch_options .get ("headless" , False ),
185+ "headless" : local_browser_launch_options .get (
186+ "headless" , stagehand_instance .config .headless
187+ ),
186188 "accept_downloads" : local_browser_launch_options .get (
187189 "acceptDownloads" , True
188190 ),
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ class StagehandConfig(BaseModel):
7070 alias = "domSettleTimeoutMs" ,
7171 description = "Timeout for DOM to settle (in ms)" ,
7272 )
73+ headless : bool = Field (False , description = "Run browser in headless mode" )
7374 browserbase_session_create_params : Optional [dict [str , Any ]] = Field (
7475 None ,
7576 alias = "browserbaseSessionCreateParams" ,
You can’t perform that action at this time.
0 commit comments