Table of Contents

Class InnerTextLocator

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Represents a locator for locating nodes via their visible text as defined by the innerText DOM property.

public class InnerTextLocator : Locator
Inheritance
InnerTextLocator
Inherited Members

Constructors

InnerTextLocator(string)

Initializes a new instance of the InnerTextLocator class.

public InnerTextLocator(string value)

Parameters

value string

The text to use in locating nodes.

Properties

IgnoreCase

Gets or sets a value indicating whether the locator should ignore case when matching. When omitted or null, the match is case-sensitive.

[JsonPropertyName("ignoreCase")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? IgnoreCase { get; set; }

Property Value

bool?

MatchType

Gets or sets a value indicating the type of match for the text, partial or full. When omitted or null, the match is a full-text match.

[JsonPropertyName("matchType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public InnerTextMatchType? MatchType { get; set; }

Property Value

InnerTextMatchType?

MaxDepth

Gets or sets a value indicating the maximum depth to which to search for nodes. When omitted or null, the locator will return matches to an infinite depth.

[JsonPropertyName("maxDepth")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ulong? MaxDepth { get; set; }

Property Value

ulong?

Type

Gets the type of locator.

[JsonPropertyName("type")]
public override string Type { get; }

Property Value

string

Value

Gets the text to use in locating nodes.

[JsonPropertyName("value")]
public string Value { get; }

Property Value

string