Skip to content

BrowserLease

Namespace: E2E.Engine

public class BrowserLease

One leased browser, as CancellationToken) returns it and CancellationToken) gets it back. A provider may derive from it and keep further fields: release gets that same object, while only the declared fields travel from the runner to the worker that attaches to it.

Inheritance: object

View source

public string CdpEndpoint { get; init; }

ws://, wss://, or http:// endpoint to attach to, over CDP unless Protocol says otherwise.

Value: string

View source

public string Id { get; init; }

The provider’s handle on the lease (a session id), named in progress lines and handed back to release.

Value: string

View source

public BrowserProtocol Protocol { get; init; }

What CdpEndpoint speaks. A Playwright lease needs Worker scope and no ReconnectEndpoint: its connection cannot be reattached. .NET-only.

Value: BrowserProtocol

View source

public string? ReconnectEndpoint { get; init; }

Endpoint to reattach to the same browser after a transport drop, when it differs from CdpEndpoint; only meaningful for a per-attempt lease.

Value: string

View source