Table of Contents

Class LayoutViewport

Namespace
Selenium.WebDriver.BiDi.Cdp.Page
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Layout viewport position and dimensions.

public sealed record LayoutViewport : IEquatable<LayoutViewport>
Inheritance
LayoutViewport
Implements
Inherited Members

Constructors

LayoutViewport(long, long, long, long)

Layout viewport position and dimensions.

public LayoutViewport(long PageX, long PageY, long ClientWidth, long ClientHeight)

Parameters

PageX long

Horizontal offset relative to the document (CSS pixels).

PageY long

Vertical offset relative to the document (CSS pixels).

ClientWidth long

Width (CSS pixels), excludes scrollbar if present.

ClientHeight long

Height (CSS pixels), excludes scrollbar if present.

Properties

ClientHeight

Height (CSS pixels), excludes scrollbar if present.

public long ClientHeight { get; init; }

Property Value

long

ClientWidth

Width (CSS pixels), excludes scrollbar if present.

public long ClientWidth { get; init; }

Property Value

long

PageX

Horizontal offset relative to the document (CSS pixels).

public long PageX { get; init; }

Property Value

long

PageY

Vertical offset relative to the document (CSS pixels).

public long PageY { get; init; }

Property Value

long