WebArena benchmark environment for BrowserGym, version 0.14.3. Provides a Gymnasium-compatible environment for evaluating web agents on realistic web interaction tasks.
pip install browsergym-webarenaVerified import paths — ran on the pinned version, not inferred.
Create a WebArena environment and reset it. Use 'headless=True' for servers.
Pull and run the required Docker images as per the WebArena setup instructions before using the environment.
Use 'browsergym/webarena.<task_id>' where <task_id> is an integer from 0 to 811.
Always access 'obs['screenshot']' or 'obs['text']' appropriately.
Use 'env.close()' after each episode or use context managers.
Ensure your agent returns a string action from the 'action_space' (Text space) each step.