DefaultElementLocator ClassWebDriver
A default locator for elements for use with the PageFactory. This locator implements no retry logic for elements not being found, nor for elements being stale.
Inheritance Hierarchy

SystemObject
  OpenQA.Selenium.Support.PageObjectsDefaultElementLocator

Namespace: OpenQA.Selenium.Support.PageObjects
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 3.1.0
Syntax

public class DefaultElementLocator : IElementLocator

The DefaultElementLocator type exposes the following members.

Constructors

  NameDescription
Public methodDefaultElementLocator
Initializes a new instance of the DefaultElementLocator class.
Top
Properties

  NameDescription
Public propertySearchContext
Gets the ISearchContext to be used in locating elements.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLocateElement
Locates an element using the given list of By criteria.
Public methodLocateElements
Locates a list of elements using the given list of By criteria.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also

Reference