aeat.adapters.outbound.aeat.sede._browser_stage module

Shared Playwright stage error mapping for Sede browser drivers.

class PlaywrightStageRunner(*args, **kwargs)[source]

Bases: Protocol

Callable shape returned by build_playwright_stage_runner().

build_playwright_stage_runner(*, surface_label, log_prefix, shape_suggestion, logger)[source]

Build a PlaywrightStageRunner bound to the shared Sede error mapping.

Return type:

PlaywrightStageRunner

Parameters:
async run_playwright_stage(operation, *, stage, description, timeout_ms, surface_label, log_prefix, shape_suggestion, logger, timeout_is_shape_change=False)[source]

Await a Playwright operation and emit uniform Sede failure modes.

Return type:

TypeVar(T)

Parameters: