File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -425,9 +425,6 @@ def run(self):
425425 exp_dir = self .exp_dir ,
426426 use_raw_page_output = getattr (self .agent_args , "use_raw_page_output" , False ),
427427 )
428- # webarena_verified hack, enable playwright tracing
429- if self .env_args .task_name .startswith ("webarena_verified" ):
430- env .unwrapped .context .tracing .start (snapshots = True )
431428
432429 logger .debug ("Environment created." )
433430 step_info = StepInfo (step = 0 )
@@ -507,9 +504,6 @@ def run(self):
507504 logger .exception (f"Error while saving experiment info: { e } " )
508505 try :
509506 if env is not None :
510- # webarena_verified hack, close playwright tracing
511- if self .env_args .task_name .startswith ("webarena_verified" ):
512- env .unwrapped .context .tracing .stop (path = self .exp_dir / "pw_traces" / f"{ self .exp_name } .zip" )
513507 env .close ()
514508 except Exception as e :
515509 logger .exception (f"Error while closing the environment: { e } " )
You can’t perform that action at this time.
0 commit comments