Table of Contents

Class SecurityAdapter

Namespace
OpenQA.Selenium.DevTools.V131.Security
Assembly
WebDriver.dll

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

public class SecurityAdapter
Inheritance
SecurityAdapter
Inherited Members

Constructors

SecurityAdapter(IDevToolsSession)

Initializes a new instance of the SecurityAdapter class.

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

Disable(DisableCommandSettings, CancellationToken, int?, bool)

disable

public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command DisableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<DisableCommandResponse>

Enable(EnableCommandSettings, CancellationToken, int?, bool)

enable

public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

HandleCertificateError(HandleCertificateErrorCommandSettings, CancellationToken, int?, bool)

handleCertificateError

public Task<HandleCertificateErrorCommandResponse> HandleCertificateError(HandleCertificateErrorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command HandleCertificateErrorCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<HandleCertificateErrorCommandResponse>

SetIgnoreCertificateErrors(SetIgnoreCertificateErrorsCommandSettings, CancellationToken, int?, bool)

setIgnoreCertificateErrors

public Task<SetIgnoreCertificateErrorsCommandResponse> SetIgnoreCertificateErrors(SetIgnoreCertificateErrorsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetIgnoreCertificateErrorsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetIgnoreCertificateErrorsCommandResponse>

SetOverrideCertificateErrors(SetOverrideCertificateErrorsCommandSettings, CancellationToken, int?, bool)

setOverrideCertificateErrors

public Task<SetOverrideCertificateErrorsCommandResponse> SetOverrideCertificateErrors(SetOverrideCertificateErrorsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetOverrideCertificateErrorsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetOverrideCertificateErrorsCommandResponse>

Events

CertificateError

certificateError

public event EventHandler<CertificateErrorEventArgs> CertificateError

Event Type

EventHandler<CertificateErrorEventArgs>

SecurityStateChanged

securityStateChanged

public event EventHandler<SecurityStateChangedEventArgs> SecurityStateChanged

Event Type

EventHandler<SecurityStateChangedEventArgs>

VisibleSecurityStateChanged

visibleSecurityStateChanged

public event EventHandler<VisibleSecurityStateChangedEventArgs> VisibleSecurityStateChanged

Event Type

EventHandler<VisibleSecurityStateChangedEventArgs>