BrowserGym is a Gymnasium-compatible environment for web task automation in Chromium. It provides a standardized interface for training and evaluating AI agents on web tasks, supporting both human demonstrations and automated interactions. Version 0.14.3 requires Python >3.10, with frequent releases.
pip install browsergymVerified import paths — ran on the pinned version, not inferred.
Creates a MiniWoB 'click-test' environment, resets it, performs a click action, and prints the reward.
Use obs['observation']['text'] and obs['observation']['image'] or check the updated observation space structure.
Use 'browsergym/miniwob.' prefix (e.g., 'browsergym/miniwob.click-test').
Call make(task, headless=True).