Initializes the elements in the Page Object.
Namespace: OpenQA.Selenium.Support.PageObjects
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 3.1.0
Syntax
Parameters
- driver
- Type: OpenQA.SeleniumISearchContext
The driver used to find elements on the page. - page
- Type: SystemObject
The Page Object to be populated with elements.
Exceptions
Exception | Condition |
---|---|
ArgumentException | thrown if a field or property decorated with the FindsByAttribute is not of type IWebElement or IList{IWebElement}. |
See Also