Table of Contents

Class Viewport

Namespace
OpenQA.Selenium.DevTools.V146.Page
Assembly
Selenium.WebDriver.dll

Viewport for capturing screenshot.

public sealed class Viewport
Inheritance
Viewport
Inherited Members

Properties

Height

Rectangle height in device independent pixels (dip).

[JsonPropertyName("height")]
public double Height { get; set; }

Property Value

double

Scale

Page scale factor.

[JsonPropertyName("scale")]
public double Scale { get; set; }

Property Value

double

Width

Rectangle width in device independent pixels (dip).

[JsonPropertyName("width")]
public double Width { get; set; }

Property Value

double

X

X offset in device independent pixels (dip).

[JsonPropertyName("x")]
public double X { get; set; }

Property Value

double

Y

Y offset in device independent pixels (dip).

[JsonPropertyName("y")]
public double Y { get; set; }

Property Value

double