 | BaseComponentExists Method |
Checks if a displayed element exists using the provided xPath selector.
Namespace: Blackbaud.UAT.BaseAssembly: Blackbaud.UAT.Core (in Blackbaud.UAT.Core.dll) Version: 1.0.1304.1 (1.0.1304.1)
Syntaxpublic static bool Exists(
string xPath,
double secondsToWait = -1
)
Public Shared Function Exists (
xPath As String,
Optional secondsToWait As Double = -1
) As Boolean
public:
static bool Exists(
String^ xPath,
double secondsToWait = -1
)
Parameters
- xPath
- Type: SystemString
The xPath selector to find an element with. - secondsToWait (Optional)
- Type: SystemDouble
The time to spend looking for the element. Defaults to TimeoutSecs.
Return Value
Type:
BooleanTrue if a valid element is found within the time to wait, false otherwise.
See Also