Table of Contents

Class HighlightRectCommandSettings

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

Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. Issue: the method does not handle device pixel ratio (DPR) correctly. The coordinates currently have to be adjusted by the client if DPR is not 1 (see crbug.com/437807128).

public sealed class HighlightRectCommandSettings : ICommand
Inheritance
HighlightRectCommandSettings
Implements
Inherited Members

Properties

Color

The highlight fill color (default: transparent).

[JsonPropertyName("color")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RGBA? Color { get; set; }

Property Value

RGBA

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Height

Rectangle height

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

Property Value

long

OutlineColor

The highlight outline color (default: transparent).

[JsonPropertyName("outlineColor")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RGBA? OutlineColor { get; set; }

Property Value

RGBA

Width

Rectangle width

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

Property Value

long

X

X coordinate

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

Property Value

long

Y

Y coordinate

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

Property Value

long