Table of Contents

Class DeviceOrientationAdapter

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

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

public class DeviceOrientationAdapter
Inheritance
DeviceOrientationAdapter
Inherited Members

Constructors

DeviceOrientationAdapter(IDevToolsSession)

Initializes a new instance of the DeviceOrientationAdapter class.

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

ClearDeviceOrientationOverride(ClearDeviceOrientationOverrideCommandSettings, CancellationToken, int?, bool)

clearDeviceOrientationOverride

public Task<ClearDeviceOrientationOverrideCommandResponse> ClearDeviceOrientationOverride(ClearDeviceOrientationOverrideCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command ClearDeviceOrientationOverrideCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<ClearDeviceOrientationOverrideCommandResponse>

SetDeviceOrientationOverride(SetDeviceOrientationOverrideCommandSettings, CancellationToken, int?, bool)

setDeviceOrientationOverride

public Task<SetDeviceOrientationOverrideCommandResponse> SetDeviceOrientationOverride(SetDeviceOrientationOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SetDeviceOrientationOverrideCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SetDeviceOrientationOverrideCommandResponse>