Table of Contents

Class PWAAdapter

Namespace
OpenQA.Selenium.DevTools.V132.PWA
Assembly
WebDriver.dll

Represents an adapter for the PWA domain to simplify the command interface.

public class PWAAdapter
Inheritance
PWAAdapter
Inherited Members

Constructors

PWAAdapter(IDevToolsSession)

Initializes a new instance of the PWAAdapter class.

public PWAAdapter(IDevToolsSession session)

Parameters

session IDevToolsSession

The IDevToolsSession to be used with this adapter.

Properties

Session

Gets the DevToolsSession associated with the adapter.

public IDevToolsSession Session { get; }

Property Value

IDevToolsSession

Methods

ChangeAppUserSettings(ChangeAppUserSettingsCommandSettings, CancellationToken, int?, bool)

changeAppUserSettings

public Task<ChangeAppUserSettingsCommandResponse> ChangeAppUserSettings(ChangeAppUserSettingsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ChangeAppUserSettingsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ChangeAppUserSettingsCommandResponse>

GetOsAppState(GetOsAppStateCommandSettings, CancellationToken, int?, bool)

getOsAppState

public Task<GetOsAppStateCommandResponse> GetOsAppState(GetOsAppStateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetOsAppStateCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetOsAppStateCommandResponse>

Install(InstallCommandSettings, CancellationToken, int?, bool)

install

public Task<InstallCommandResponse> Install(InstallCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command InstallCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<InstallCommandResponse>

Launch(LaunchCommandSettings, CancellationToken, int?, bool)

launch

public Task<LaunchCommandResponse> Launch(LaunchCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command LaunchCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<LaunchCommandResponse>

LaunchFilesInApp(LaunchFilesInAppCommandSettings, CancellationToken, int?, bool)

launchFilesInApp

public Task<LaunchFilesInAppCommandResponse> LaunchFilesInApp(LaunchFilesInAppCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command LaunchFilesInAppCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<LaunchFilesInAppCommandResponse>

OpenCurrentPageInApp(OpenCurrentPageInAppCommandSettings, CancellationToken, int?, bool)

openCurrentPageInApp

public Task<OpenCurrentPageInAppCommandResponse> OpenCurrentPageInApp(OpenCurrentPageInAppCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command OpenCurrentPageInAppCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<OpenCurrentPageInAppCommandResponse>

Uninstall(UninstallCommandSettings, CancellationToken, int?, bool)

uninstall

public Task<UninstallCommandResponse> Uninstall(UninstallCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command UninstallCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<UninstallCommandResponse>