Class Locator
- Namespace
- WebDriverBiDi.BrowsingContext
- Assembly
- WebDriverBiDi.dll
Represents a locator for locating nodes.
[JsonDerivedType(typeof(AccessibilityLocator))]
[JsonDerivedType(typeof(ContextLocator))]
[JsonDerivedType(typeof(CssLocator))]
[JsonDerivedType(typeof(InnerTextLocator))]
[JsonDerivedType(typeof(XPathLocator))]
public abstract class Locator
- Inheritance
-
Locator
- Derived
- Inherited Members
Remarks
Each subclass exposes the value it locates by with a type of its own: the selector, expression, or text of a
CssLocator, XPathLocator, or InnerTextLocator is its
Value string; an AccessibilityLocator locates by its Name
and Role; and a ContextLocator locates by its
BrowsingContextId.
Constructors
Locator()
Initializes a new instance of the Locator class.
protected Locator()
Properties
Type
Gets the type of locator.
[JsonPropertyName("type")]
public abstract string Type { get; }