Skip to content

common_browser.sync

One synchronous boundary around an entire owned asynchronous workflow.

Classes

SyncBrowser

Run once in the caller thread, close once, and return detached data.

run

@classmethod
def run(workflow: Callable[[PlaywrightBrowser], Awaitable[T]], *, config: BrowserConfig | None = None, sink: ArtifactSink | None = None) -> T

Types and values

T

T = TypeVar('T')