Table of Contents

Class GetBackgroundColorsResult

Namespace
Selenium.WebDriver.BiDi.Cdp.CSS
Assembly
Selenium.WebDriver.BiDi.Cdp.dll
public sealed record GetBackgroundColorsResult : EmptyResult, IEquatable<EmptyResult>, IEquatable<GetBackgroundColorsResult>
Inheritance
EmptyResult
GetBackgroundColorsResult
Implements
IEquatable<EmptyResult>
Inherited Members
EmptyResult.ToString()
EmptyResult.GetHashCode()
EmptyResult.Equals(EmptyResult)
EmptyResult.<Clone>$()
EmptyResult.AdditionalData
EmptyResult.AdditionalMessageData

Constructors

GetBackgroundColorsResult(ImmutableArray<string>?, string?, string?)

public GetBackgroundColorsResult(ImmutableArray<string>? BackgroundColors, string? ComputedFontSize, string? ComputedFontWeight)

Parameters

BackgroundColors ImmutableArray<string>?

The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).

ComputedFontSize string

The computed font size for this node, as a CSS computed value string (e.g. '12px').

ComputedFontWeight string

The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').

Properties

BackgroundColors

The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).

public ImmutableArray<string>? BackgroundColors { get; init; }

Property Value

ImmutableArray<string>?

ComputedFontSize

The computed font size for this node, as a CSS computed value string (e.g. '12px').

public string? ComputedFontSize { get; init; }

Property Value

string

ComputedFontWeight

The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').

public string? ComputedFontWeight { get; init; }

Property Value

string