Class Viewport

java.lang.Object
org.openqa.selenium.bidi.protocol.browsingcontext.Viewport

@Beta @Internal public class Viewport extends Object
This is an unsupported API. No compatibility guarantees are provided. It tracks the W3C WebDriver BiDi specification directly. As the specification evolves, this API will change or be removed without prior notice.
  • Constructor Details

    • Viewport

      public Viewport(long width, long height)
  • Method Details

    • getWidth

      public long getWidth()
    • getHeight

      public long getHeight()
    • toMap

      public Map<String,Object> toMap()