Initializes the elements in the Page Object.
Namespace: OpenQA.Selenium.Support.PageObjectsAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public static void InitElements( ISearchContext driver, Object page )
Parameters
- driver
- Type: OpenQA.Selenium ISearchContext
The driver used to find elements on the page.
- page
- Type:
System Object
The Page Object to be populated with elements.
Exceptions
Exception | Condition |
---|---|
![]() | thrown if a field or property decorated with the FindsByAttribute is not of type IWebElement or IList{IWebElement}. |
See Also