PageFactory ClassWebDriver
Provides the ability to produce Page Objects modeling a page. This class cannot be inherited.
Inheritance Hierarchy

SystemObject
  OpenQA.Selenium.Support.PageObjectsPageFactory

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

public sealed class PageFactory

The PageFactory type exposes the following members.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(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 methodStatic memberInitElements(Object, IElementLocator)
Initializes the elements in the Page Object.
Public methodStatic memberInitElements(ISearchContext, Object)
Initializes the elements in the Page Object.
Public methodStatic memberInitElements(Object, IElementLocator, IPageObjectMemberDecorator)
Initializes the elements in the Page Object.
Public methodStatic memberInitElements(ISearchContext, Object, IPageObjectMemberDecorator)
Initializes the elements in the Page Object.
Public methodStatic memberInitElementsT(IElementLocator)
Initializes the elements in the Page Object with the given type.
Public methodStatic memberInitElementsT(IWebDriver)
Initializes the elements in the Page Object with the given type.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also

Reference