Table of Contents

Class ScrollIntoViewIfNeededCommandSettings

Namespace
OpenQA.Selenium.DevTools.V147.DOM
Assembly
Selenium.WebDriver.dll

Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

public sealed class ScrollIntoViewIfNeededCommandSettings : ICommand
Inheritance
ScrollIntoViewIfNeededCommandSettings
Implements
Inherited Members

Properties

BackendNodeId

Identifier of the backend node.

[JsonPropertyName("backendNodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? BackendNodeId { get; set; }

Property Value

long?

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

NodeId

Identifier of the node.

[JsonPropertyName("nodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? NodeId { get; set; }

Property Value

long?

ObjectId

JavaScript object id of the node wrapper.

[JsonPropertyName("objectId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ObjectId { get; set; }

Property Value

string

Rect

The rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.

[JsonPropertyName("rect")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Rect? Rect { get; set; }

Property Value

Rect