Class FilterOptions
- Namespace
- Xping.Sdk.Validations.TextUtils
- Assembly
- Xping.Sdk.dll
Represents a set of filtering criteria used to refine the selection of HTML elements.
public record FilterOptions : IEquatable<FilterOptions>
- Inheritance
-
FilterOptions
- Implements
- Inherited Members
Constructors
FilterOptions(string?, string?, Regex?, Regex?)
Represents a set of filtering criteria used to refine the selection of HTML elements.
public FilterOptions(string? HasNotText = null, string? HasText = null, Regex? HasNotTextRegex = null, Regex? HasTextRegex = null)
Parameters
Properties
HasNotText
Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. Matching is case-insensitive and searches for a substring.
public string? HasNotText { get; init; }
Property Value
HasNotTextRegex
Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When passed a string, matching is case-insensitive and searches for a substring.
public Regex? HasNotTextRegex { get; init; }
Property Value
HasText
Matches elements containing specified text somewhere inside, possibly in a child or a descendant element.
Matching is case-insensitive and searches for a substring. For example,
"Some Text"
matches <article><div>Some Text</div></article>
.
public string? HasText { get; init; }
Property Value
HasTextRegex
Matches elements containing specified text somewhere inside, possibly in a child or a descendant element. When
passed a string, matching is case-insensitive and searches for a substring. For example,
"Some Text"
matches <article><div>Some Text</div></article>
.
public Regex? HasTextRegex { get; init; }
Property Value
Methods
ToString()
Returns a string that represents the current TextOptions object.
public override string ToString()
Returns
- string
A string that represents the current object.