An expectation for checking that an element is present on the DOM of a
page. This does not necessarily mean that the element is visible.
Namespace: OpenQA.Selenium.Support.UIAssembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public static Func<IWebDriver, IWebElement> ElementExists( By locator )
Parameters
- locator
- Type: OpenQA.Selenium By
The locator used to find the element.
Return Value
The IWebElement once it is located.See Also