Target framework
Meziantou.Framework API reference Meziantou.AspNetCore.Testing
LocatorFilterOptions Class Namespace Meziantou.AspNetCore.Testing Assembly Meziantou.AspNetCore.Testing.dll Package Meziantou.AspNetCore.Testing 0.1.2 Source LocatorFilterOptions.cs Available in package assets net10.0 net11.0 Configures Locator.Filter : the conditions that the elements of a locator must satisfy.
public sealed class LocatorFilterOptions
Constructors
LocatorFilterOptions() public LocatorFilterOptions()
No documentation is available.
Properties Name Description Has Gets a locator that finds at least one element inside the elements, evaluated from each element (page.GetByRole("listitem").Filter(new() { Has = page.GetByRole("button", "Delete") })). HasNot Gets a locator that finds no element inside the elements, evaluated from each element. HasNotText Gets a text that the elements do not contain (a substring, ignoring the case and collapsing the white space). HasNotTextRegex Gets a regular expression that does not match the text of the elements. HasText Gets a text that the elements contain, somewhere in their descendants (a substring, ignoring the case and collapsing the white space). HasTextRegex Gets a regular expression that matches the text of the elements. Visible Gets whether the elements are visible, or null to keep the visible and the hidden elements.
Gets a locator that finds at least one element inside the elements, evaluated from each element (page.GetByRole("listitem").Filter(new() { Has = page.GetByRole("button", "Delete") })).
Gets a locator that finds no element inside the elements, evaluated from each element.
public Locator ? HasNot { get ; init ; }Gets a text that the elements do not contain (a substring, ignoring the case and collapsing the white space).
public string ? HasNotText { get ; init ; }Gets a regular expression that does not match the text of the elements.
public Regex ? HasNotTextRegex { get ; init ; }Gets a text that the elements contain, somewhere in their descendants (a substring, ignoring the case and collapsing the white space).
public string ? HasText { get ; init ; }Gets a regular expression that matches the text of the elements.
public Regex ? HasTextRegex { get ; init ; }Gets whether the elements are visible, or null to keep the visible and the hidden elements.
public bool ? Visible { get ; init ; }