你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PlaywrightService Class

Definition

Sets up and manages the Playwright service.

public class PlaywrightService
type PlaywrightService = class
Public Class PlaywrightService
Inheritance
PlaywrightService
Derived

Constructors

PlaywrightService(Nullable<OSPlatform>, String, String, String, Nullable<Boolean>, TokenCredential, IFrameworkLogger)

Initializes a new instance of the PlaywrightService class.

PlaywrightService(PlaywrightServiceOptions, TokenCredential, IFrameworkLogger)

Initializes a new instance of the PlaywrightService class.

Properties

ExposeNetwork

Gets or sets the expose network field for remote browsers.

Os

Gets or sets the operating system for Playwright service.

RotationTimer

Gets or sets the rotation timer for Playwright service.

RunId

Gets or sets the run ID.

ServiceAuth

Gets or sets the default authentication mechanism.

ServiceEndpoint

Gets the service endpoint for Playwright service.

UseCloudHostedBrowsers

Gets or sets a flag indicating whether to use cloud-hosted browsers.

Methods

Cleanup()

Cleans up the resources used to setup entra id authentication.

GetConnectOptionsAsync<T>(Nullable<OSPlatform>, String, String, CancellationToken)

Gets the connect options for connecting to Playwright Service's cloud hosted browsers.

InitializeAsync(CancellationToken)

Initialises the resources used to setup entra id authentication.

Applies to