Class DeviceOrientationAdapter
- Namespace
- OpenQA.Selenium.DevTools.V85.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
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
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
ClearDeviceOrientationOverrideCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetDeviceOrientationOverride(SetDeviceOrientationOverrideCommandSettings, CancellationToken, int?, bool)
setDeviceOrientationOverride
public Task<SetDeviceOrientationOverrideCommandResponse> SetDeviceOrientationOverride(SetDeviceOrientationOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetDeviceOrientationOverrideCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool