 | BaseComponentGetDisplayedElement Method |
Get the displayed IWebElement using the provided xPath.
Namespace: Blackbaud.UAT.BaseAssembly: Blackbaud.UAT.Core (in Blackbaud.UAT.Core.dll) Version: 1.0.1304.1 (1.0.1304.1)
Syntaxpublic static IWebElement GetDisplayedElement(
string xPath,
double waitTime = -1
)
Public Shared Function GetDisplayedElement (
xPath As String,
Optional waitTime As Double = -1
) As IWebElement
public:
static IWebElement^ GetDisplayedElement(
String^ xPath,
double waitTime = -1
)
Parameters
- xPath
- Type: SystemString
The xPath selector to find an element with. - waitTime (Optional)
- Type: SystemDouble
The amount of time to search for the a valid element. Default time is TimeoutSecs.
Return Value
Type:
IWebElementAn IWebElement if a valid element is found. A WebDriverTimeoutException is thrown is no element is found.
See Also