Table of Contents

Class AnimationAdapter

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

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

public class AnimationAdapter
Inheritance
AnimationAdapter
Inherited Members

Constructors

AnimationAdapter(IDevToolsSession)

Initializes a new instance of the AnimationAdapter class.

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

GetCurrentTime(GetCurrentTimeCommandSettings, CancellationToken, int?, bool)

getCurrentTime

public Task<GetCurrentTimeCommandResponse> GetCurrentTime(GetCurrentTimeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetCurrentTimeCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetCurrentTimeCommandResponse>

GetPlaybackRate(GetPlaybackRateCommandSettings, CancellationToken, int?, bool)

getPlaybackRate

public Task<GetPlaybackRateCommandResponse> GetPlaybackRate(GetPlaybackRateCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command GetPlaybackRateCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<GetPlaybackRateCommandResponse>

ReleaseAnimations(ReleaseAnimationsCommandSettings, CancellationToken, int?, bool)

releaseAnimations

public Task<ReleaseAnimationsCommandResponse> ReleaseAnimations(ReleaseAnimationsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ReleaseAnimationsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ReleaseAnimationsCommandResponse>

ResolveAnimation(ResolveAnimationCommandSettings, CancellationToken, int?, bool)

resolveAnimation

public Task<ResolveAnimationCommandResponse> ResolveAnimation(ResolveAnimationCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ResolveAnimationCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ResolveAnimationCommandResponse>

SeekAnimations(SeekAnimationsCommandSettings, CancellationToken, int?, bool)

seekAnimations

public Task<SeekAnimationsCommandResponse> SeekAnimations(SeekAnimationsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SeekAnimationsCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SeekAnimationsCommandResponse>

SetPaused(SetPausedCommandSettings, CancellationToken, int?, bool)

setPaused

public Task<SetPausedCommandResponse> SetPaused(SetPausedCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetPausedCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetPausedCommandResponse>

SetPlaybackRate(SetPlaybackRateCommandSettings, CancellationToken, int?, bool)

setPlaybackRate

public Task<SetPlaybackRateCommandResponse> SetPlaybackRate(SetPlaybackRateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetPlaybackRateCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetPlaybackRateCommandResponse>

SetTiming(SetTimingCommandSettings, CancellationToken, int?, bool)

setTiming

public Task<SetTimingCommandResponse> SetTiming(SetTimingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetTimingCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetTimingCommandResponse>

Events

AnimationCanceled

animationCanceled

public event EventHandler<AnimationCanceledEventArgs> AnimationCanceled

Event Type

EventHandler<AnimationCanceledEventArgs>

AnimationCreated

animationCreated

public event EventHandler<AnimationCreatedEventArgs> AnimationCreated

Event Type

EventHandler<AnimationCreatedEventArgs>

AnimationStarted

animationStarted

public event EventHandler<AnimationStartedEventArgs> AnimationStarted

Event Type

EventHandler<AnimationStartedEventArgs>

AnimationUpdated

animationUpdated

public event EventHandler<AnimationUpdatedEventArgs> AnimationUpdated

Event Type

EventHandler<AnimationUpdatedEventArgs>