{"id":23383,"library":"browsergym-visualwebarena","title":"browsergym-visualwebarena","description":"VisualWebArena benchmark integration for BrowserGym. Version 0.14.3, released as part of the BrowserGym ecosystem. Provides environments for evaluating multimodal web agents on visual tasks. Release cadence follows BrowserGym releases.","status":"active","version":"0.14.3","language":"python","source_language":"en","source_url":"https://github.com/ServiceNow/BrowserGym","tags":["webarena","browsergym","visualwebarena","benchmark","multimodal","gymnasium"],"install":[{"cmd":"pip install browsergym-visualwebarena","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core framework; must be installed separately","package":"browsergym","optional":false}],"imports":[{"note":"VisualWebArena is a submodule of browsergym; import from browsergym namespace.","wrong":"from visualwebarena import VisualWebArenaEnv","symbol":"VisualWebArenaEnv","correct":"from browsergym.visualwebarena import VisualWebArenaEnv"},{"note":"The PyPI package name has hyphens, but the import uses underscores.","wrong":"from browsergym_visualwebarena import ALL_VISUALWEBARENA_TASKS","symbol":"ALL_VISUALWEBARENA_TASKS","correct":"from browsergym.visualwebarena import ALL_VISUALWEBARENA_TASKS"}],"quickstart":{"code":"import gymnasium as gym\nimport browsergym.visualwebarena\n\nenv = gym.make('browsergym/visualwebarena.0')\nobs, info = env.reset()\nprint(obs.keys())","lang":"python","description":"Create a VisualWebArena environment instance using Gymnasium's make function. The environment ID follows the pattern browsergym/visualwebarena.<task_id>."},"warnings":[{"fix":"Install both from the same release: pip install browsergym==0.14.3 browsergym-visualwebarena==0.14.3","message":"browsergym-visualwebarena requires a specific version of BrowserGym. Ensure browsergym is installed with version compatible with your visualwebarena version (e.g., use the same release).","severity":"breaking","affected_versions":"all"},{"fix":"List available tasks with: from browsergym.visualwebarena import ALL_VISUALWEBAREA_TASKS; print(ALL_VISUALWEBAREA_TASKS)","message":"Environment IDs are case-sensitive and must be specified exactly. Use browsergym/visualwebarena.<task_id> (lowercase, no spaces).","severity":"gotcha","affected_versions":"all"},{"fix":"Run with xvfb: xvfb-run python your_script.py","message":"The visualwebarena tasks require WebCanvas rendering; ensure your system has a display or use xvfb.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'from browsergym.visualwebarena import ...'","message":"Importing from 'visualwebarena' directly (without 'browsergym.') is deprecated and will be removed in a future version.","severity":"deprecated","affected_versions":">=0.14.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install browsergym","cause":"browsergym not installed","error":"ModuleNotFoundError: No module named 'browsergym'"},{"fix":"Ensure browsergym.visualwebarena is imported: import browsergym.visualwebarena","cause":"Environment not registered because visualwebarena import failed or task ID is wrong","error":"gym.error.UnregisteredEnvironment: browsergym/visualwebarena.0"},{"fix":"Run with virtual display: xvfb-run python script.py or set DISPLAY env variable","cause":"No display server running","error":"pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to X server"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}