Table of Contents

Class ScreenOrientationLockChangedEventArgs

Namespace
OpenQA.Selenium.DevTools.V148.Emulation
Assembly
Selenium.WebDriver.dll

Fired when a page calls screen.orientation.lock() or screen.orientation.unlock() while device emulation is enabled. This allows the DevTools frontend to update the emulated device orientation accordingly.

public sealed class ScreenOrientationLockChangedEventArgs : EventArgs
Inheritance
ScreenOrientationLockChangedEventArgs
Inherited Members

Properties

Locked

Whether the screen orientation is currently locked.

[JsonPropertyName("locked")]
public bool Locked { get; set; }

Property Value

bool

Orientation

The orientation lock type requested by the page. Only set when locked is true.

[JsonPropertyName("orientation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ScreenOrientation? Orientation { get; set; }

Property Value

ScreenOrientation