Table of Contents

Class BrowserAdapter

Namespace
OpenQA.Selenium.DevTools.V85.Browser
Assembly
WebDriver.dll

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

public class BrowserAdapter
Inheritance
BrowserAdapter
Inherited Members

Constructors

BrowserAdapter(IDevToolsSession)

Initializes a new instance of the BrowserAdapter class.

public BrowserAdapter(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

Close(CloseCommandSettings, CancellationToken, int?, bool)

close

public Task<CloseCommandResponse> Close(CloseCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command CloseCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<CloseCommandResponse>

Crash(CrashCommandSettings, CancellationToken, int?, bool)

crash

public Task<CrashCommandResponse> Crash(CrashCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command CrashCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<CrashCommandResponse>

CrashGpuProcess(CrashGpuProcessCommandSettings, CancellationToken, int?, bool)

crashGpuProcess

public Task<CrashGpuProcessCommandResponse> CrashGpuProcess(CrashGpuProcessCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command CrashGpuProcessCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<CrashGpuProcessCommandResponse>

GetBrowserCommandLine(GetBrowserCommandLineCommandSettings, CancellationToken, int?, bool)

getBrowserCommandLine

public Task<GetBrowserCommandLineCommandResponse> GetBrowserCommandLine(GetBrowserCommandLineCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetBrowserCommandLineCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetBrowserCommandLineCommandResponse>

GetHistogram(GetHistogramCommandSettings, CancellationToken, int?, bool)

getHistogram

public Task<GetHistogramCommandResponse> GetHistogram(GetHistogramCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetHistogramCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetHistogramCommandResponse>

GetHistograms(GetHistogramsCommandSettings, CancellationToken, int?, bool)

getHistograms

public Task<GetHistogramsCommandResponse> GetHistograms(GetHistogramsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetHistogramsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetHistogramsCommandResponse>

GetVersion(GetVersionCommandSettings, CancellationToken, int?, bool)

getVersion

public Task<GetVersionCommandResponse> GetVersion(GetVersionCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetVersionCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetVersionCommandResponse>

GetWindowBounds(GetWindowBoundsCommandSettings, CancellationToken, int?, bool)

getWindowBounds

public Task<GetWindowBoundsCommandResponse> GetWindowBounds(GetWindowBoundsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetWindowBoundsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetWindowBoundsCommandResponse>

GetWindowForTarget(GetWindowForTargetCommandSettings, CancellationToken, int?, bool)

getWindowForTarget

public Task<GetWindowForTargetCommandResponse> GetWindowForTarget(GetWindowForTargetCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetWindowForTargetCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetWindowForTargetCommandResponse>

GrantPermissions(GrantPermissionsCommandSettings, CancellationToken, int?, bool)

grantPermissions

public Task<GrantPermissionsCommandResponse> GrantPermissions(GrantPermissionsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GrantPermissionsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GrantPermissionsCommandResponse>

ResetPermissions(ResetPermissionsCommandSettings, CancellationToken, int?, bool)

resetPermissions

public Task<ResetPermissionsCommandResponse> ResetPermissions(ResetPermissionsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ResetPermissionsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ResetPermissionsCommandResponse>

SetDockTile(SetDockTileCommandSettings, CancellationToken, int?, bool)

setDockTile

public Task<SetDockTileCommandResponse> SetDockTile(SetDockTileCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetDockTileCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetDockTileCommandResponse>

SetDownloadBehavior(SetDownloadBehaviorCommandSettings, CancellationToken, int?, bool)

setDownloadBehavior

public Task<SetDownloadBehaviorCommandResponse> SetDownloadBehavior(SetDownloadBehaviorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetDownloadBehaviorCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetDownloadBehaviorCommandResponse>

SetPermission(SetPermissionCommandSettings, CancellationToken, int?, bool)

setPermission

public Task<SetPermissionCommandResponse> SetPermission(SetPermissionCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetPermissionCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetPermissionCommandResponse>

SetWindowBounds(SetWindowBoundsCommandSettings, CancellationToken, int?, bool)

setWindowBounds

public Task<SetWindowBoundsCommandResponse> SetWindowBounds(SetWindowBoundsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetWindowBoundsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetWindowBoundsCommandResponse>