human_requests.browsers.families.base

Attributes

Classes

DesiredConfig

Unified "desired" configuration for all families.

BrowserFamily

Family interface. Implements idempotent start and soft restarts internally.

Module Contents

Family[source]
PlaywrightEngine[source]
class DesiredConfig(
*,
family: Family,
engine: PlaywrightEngine | None,
stealth: bool,
launch_opts: Dict[str, Any],
)[source]

Unified “desired” configuration for all families.

__slots__ = ('family', 'engine', 'headless', 'stealth', 'launch_opts')[source]
family[source]
engine[source]
stealth[source]
launch_opts[source]
class BrowserFamily[source]

Family interface. Implements idempotent start and soft restarts internally.

property name: Family[source]
Abstractmethod:

Family name.

abstractmethod start(cfg: DesiredConfig) None[source]
Async:

Idempotent launch/restart according to cfg.

abstractmethod close() None[source]
Async:

Close all family resources (browser + runtime).

property browser: playwright.async_api.Browser | None[source]
Abstractmethod:

Current Browser or None if not started.

async new_context(
*,
storage_state: playwright.async_api.StorageState | str | Path | None = None,
) playwright.async_api.BrowserContext[source]