Class DOMSnapshotAdapter
- Namespace
- OpenQA.Selenium.DevTools.V142.DOMSnapshot
- Assembly
- WebDriver.dll
Represents an adapter for the DOMSnapshot domain to simplify the command interface.
public class DOMSnapshotAdapter- Inheritance
- 
      
      DOMSnapshotAdapter
- Inherited Members
Constructors
DOMSnapshotAdapter(IDevToolsSession)
Initializes a new instance of the DOMSnapshotAdapter class.
public DOMSnapshotAdapter(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
CaptureSnapshot(CaptureSnapshotCommandSettings, CancellationToken, int?, bool)
captureSnapshot
public Task<CaptureSnapshotCommandResponse> CaptureSnapshot(CaptureSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandCaptureSnapshotCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandDisableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandEnableCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
GetSnapshot(GetSnapshotCommandSettings, CancellationToken, int?, bool)
getSnapshot
public Task<GetSnapshotCommandResponse> GetSnapshot(GetSnapshotCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandGetSnapshotCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool