An expectation for checking that an element is present on the DOM of a page
and visible. Visibility means that the element is not only displayed but
also has a height and width that is greater than 0.
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> ElementIsVisible( By locator )
Parameters
- locator
- Type: OpenQA.Selenium By
The locator used to find the element.
Return Value
The IWebElement once it is located and visible.See Also