Class DeviceOrientationAdapter
- Namespace
- OpenQA.Selenium.DevTools.V141.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
- 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
ClearDeviceOrientationOverride(ClearDeviceOrientationOverrideCommandSettings?, CancellationToken, int?, bool)
clearDeviceOrientationOverride
public Task<ClearDeviceOrientationOverrideCommandResponse?> ClearDeviceOrientationOverride(ClearDeviceOrientationOverrideCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandClearDeviceOrientationOverrideCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool
Returns
SetDeviceOrientationOverride(SetDeviceOrientationOverrideCommandSettings, CancellationToken, int?, bool)
setDeviceOrientationOverride
public Task<SetDeviceOrientationOverrideCommandResponse?> SetDeviceOrientationOverride(SetDeviceOrientationOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)Parameters
- commandSetDeviceOrientationOverrideCommandSettings
- cancellationTokenCancellationToken
- millisecondsTimeoutint?
- throwExceptionIfResponseNotReceivedbool