nemo_gym.web.visual_browser
nemo_gym.web.visual_browser
Backend-neutral headed Chromium/PyAutoGUI mechanics for visual web sessions.
Module Contents
Classes
Functions
Data
API
One thread-affine Playwright context with visible PyAutoGUI actions.
Navigate using the retry policy supplied by a benchmark subclass.
Only page.goto is retried. History navigation remains a single
attempt because retrying go_back or go_forward can move twice.
Return a browser proxy for this task; local Arena sites use none.
Follow GUI tab changes without bringing any page to the foreground.
Playwright’s context page order is creation order, not the active tab. A visible document also identifies the selected tab when the address bar owns focus. A closed tab is terminal only when no live page remains or the browser is disconnected.
Fail closed before touching process-affine browser state.
The current visual-control driver requires a local DISPLAY because PyAutoGUI drives the complete headed browser surface. AgentEnv and cloud providers can use the same session lifecycle contract, but must supply a matching visual-control driver instead of silently falling back to page-only CDP mouse events.
Bases: WebResourcesServerConfig
Configuration shared by headed visual-browser benchmark policies.
Live process-local state exposed only to a colocated evaluator.
Type text without losing Unicode or interpreting newlines as glyphs.
Return a log-safe origin without URL paths, queries, or credentials.
Return whether page.goto failed with a dropped transport.