Class ScreenOrientationLockChanged

java.lang.Object
org.openqa.selenium.devtools.v147.emulation.model.ScreenOrientationLockChanged

@Beta public class ScreenOrientationLockChanged extends Object
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.
  • Constructor Details

  • Method Details

    • getLocked

      public Boolean getLocked()
      Whether the screen orientation is currently locked.
    • getOrientation

      public Optional<ScreenOrientation> getOrientation()
      The orientation lock type requested by the page. Only set when locked is true.