[Windows] Verify Element Present
Note:
From version 7.6.0, this keyword is available.
verifyElementPresent
- Description: Wait until the given element to present (appear) within the given time in the second unit.
- Keyword name: verifyElementPresent
- Keyword syntax:
Windows.verifyElementPresent(windowsObject, timeout)
-
Parameters:
-
Name: windowsObject
- Description: An object that describes locator and locator strategy of the target element that needs to wait for
- Parameter Type: WindowsTestObject
- Mandatory: Required
-
Name: timeout
- Description: System will wait at most timeout (seconds) to return the result
- If timeout = 0, Katalon Studio will use the default page load timeout
- If timeout < 0, throws IllegalArgumentException
- Parameter Type: Integer
- Mandatory: Required
- Description: System will wait at most timeout (seconds) to return the result
-
-
Return value:
- Description: true if the element presents; otherwise, false
- Type: Boolean
-
Example:
"Verify to expect the edit panel presents with verifyElementPresent keyword"
assert Windows.verifyElementPresent(findWindowsObject('Object Repository/Edit') 10)