Class BrowserAdapter
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
- sessionIDevToolsSession
- The IDevToolsSession to be used with this adapter. 
Exceptions
- ArgumentNullException
- If - sessionis null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }Property Value
Methods
AddPrivacySandboxCoordinatorKeyConfig(AddPrivacySandboxCoordinatorKeyConfigCommandSettings, CancellationToken, int?, bool)
addPrivacySandboxCoordinatorKeyConfig
public Task<AddPrivacySandboxCoordinatorKeyConfigCommandResponse?> AddPrivacySandboxCoordinatorKeyConfig(AddPrivacySandboxCoordinatorKeyConfigCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandAddPrivacySandboxCoordinatorKeyConfigCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
AddPrivacySandboxEnrollmentOverride(AddPrivacySandboxEnrollmentOverrideCommandSettings, CancellationToken, int?, bool)
addPrivacySandboxEnrollmentOverride
public Task<AddPrivacySandboxEnrollmentOverrideCommandResponse?> AddPrivacySandboxEnrollmentOverride(AddPrivacySandboxEnrollmentOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandAddPrivacySandboxEnrollmentOverrideCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
CancelDownload(CancelDownloadCommandSettings, CancellationToken, int?, bool)
cancelDownload
public Task<CancelDownloadCommandResponse?> CancelDownload(CancelDownloadCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCancelDownloadCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Close(CloseCommandSettings?, CancellationToken, int?, bool)
close
public Task<CloseCommandResponse?> Close(CloseCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCloseCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Crash(CrashCommandSettings?, CancellationToken, int?, bool)
crash
public Task<CrashCommandResponse?> Crash(CrashCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCrashCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
CrashGpuProcess(CrashGpuProcessCommandSettings?, CancellationToken, int?, bool)
crashGpuProcess
public Task<CrashGpuProcessCommandResponse?> CrashGpuProcess(CrashGpuProcessCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCrashGpuProcessCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
ExecuteBrowserCommand(ExecuteBrowserCommandCommandSettings, CancellationToken, int?, bool)
executeBrowserCommand
public Task<ExecuteBrowserCommandCommandResponse?> ExecuteBrowserCommand(ExecuteBrowserCommandCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandExecuteBrowserCommandCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetBrowserCommandLine(GetBrowserCommandLineCommandSettings?, CancellationToken, int?, bool)
getBrowserCommandLine
public Task<GetBrowserCommandLineCommandResponse> GetBrowserCommandLine(GetBrowserCommandLineCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetBrowserCommandLineCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetHistogram(GetHistogramCommandSettings, CancellationToken, int?, bool)
getHistogram
public Task<GetHistogramCommandResponse> GetHistogram(GetHistogramCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetHistogramCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetHistograms(GetHistogramsCommandSettings, CancellationToken, int?, bool)
getHistograms
public Task<GetHistogramsCommandResponse> GetHistograms(GetHistogramsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetHistogramsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetVersion(GetVersionCommandSettings?, CancellationToken, int?, bool)
getVersion
public Task<GetVersionCommandResponse> GetVersion(GetVersionCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetVersionCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetWindowBounds(GetWindowBoundsCommandSettings, CancellationToken, int?, bool)
getWindowBounds
public Task<GetWindowBoundsCommandResponse> GetWindowBounds(GetWindowBoundsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetWindowBoundsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetWindowForTarget(GetWindowForTargetCommandSettings, CancellationToken, int?, bool)
getWindowForTarget
public Task<GetWindowForTargetCommandResponse> GetWindowForTarget(GetWindowForTargetCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetWindowForTargetCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GrantPermissions(GrantPermissionsCommandSettings, CancellationToken, int?, bool)
grantPermissions
public Task<GrantPermissionsCommandResponse?> GrantPermissions(GrantPermissionsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGrantPermissionsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
ResetPermissions(ResetPermissionsCommandSettings, CancellationToken, int?, bool)
resetPermissions
public Task<ResetPermissionsCommandResponse?> ResetPermissions(ResetPermissionsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandResetPermissionsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetContentsSize(SetContentsSizeCommandSettings, CancellationToken, int?, bool)
setContentsSize
public Task<SetContentsSizeCommandResponse?> SetContentsSize(SetContentsSizeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetContentsSizeCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetDockTile(SetDockTileCommandSettings, CancellationToken, int?, bool)
setDockTile
public Task<SetDockTileCommandResponse?> SetDockTile(SetDockTileCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetDockTileCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetDownloadBehavior(SetDownloadBehaviorCommandSettings, CancellationToken, int?, bool)
setDownloadBehavior
public Task<SetDownloadBehaviorCommandResponse?> SetDownloadBehavior(SetDownloadBehaviorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetDownloadBehaviorCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetPermission(SetPermissionCommandSettings, CancellationToken, int?, bool)
setPermission
public Task<SetPermissionCommandResponse?> SetPermission(SetPermissionCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetPermissionCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetWindowBounds(SetWindowBoundsCommandSettings, CancellationToken, int?, bool)
setWindowBounds
public Task<SetWindowBoundsCommandResponse?> SetWindowBounds(SetWindowBoundsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetWindowBoundsCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Events
DownloadProgress
downloadProgress
public event EventHandler<DownloadProgressEventArgs>? DownloadProgressEvent Type
DownloadWillBegin
downloadWillBegin
public event EventHandler<DownloadWillBeginEventArgs>? DownloadWillBegin