web-arena-x / webarena

Code repo for "WebArena: A Realistic Web Environment for Building Autonomous Agents"
https://webarena.dev
Apache License 2.0
708 stars 110 forks source link

Cookies not reset between tasks #32

Closed RichardZhu123 closed 1 year ago

RichardZhu123 commented 1 year ago

Sometimes when running many tasks, the agent will accidentally click "sign out" halfway through these tasks. All the remaining tasks that require user login are then unable to run.

shuyanzhou commented 1 year ago

Thanks! I also encountered this problem. There might be better solutions, but here is my solution -- I periodically checked whether any trajectory contains the login page (e.g., grep -l "Welcome, please sign in" *.html), if so, I pause the test and re-generate the cookies.

Ideally, we want to reset our environment and cookies after every example; however, it is too time-consuming.