IElementLocator InterfaceWebDriver
Interface describing how elements are to be located by a PageFactory.

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

public interface IElementLocator

The IElementLocator type exposes the following members.

Properties

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

  NameDescription
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.
Top
Remarks

A locator must always contain a way to retrieve the ISearchContext to use in locating elements. In practice, this will usually be implemented by passing the context in via a constructor.
See Also

Reference