[WebUI] Enhanced Click
Note:
Your Katalon Studio version must be 7.2.5+.
Warning:
This keyword uses Javascript click as the last fallback which may not have the same effect as an actual click on an element.
Description
- Description: Click on the given element using various trial-and-error methods
- Keyword syntax:
enhancedClick(TestObject to, FailureHandling flowControl)
Parameters
Parameter | Parameter Type | Mandatory | Description |
---|---|---|---|
to | TestObject | Required | An object representing a web element. |
flowControl | FailureHandling | Optional | Specify failure handling schema to determine whether the execution should be allowed to continue or stop. |
Example
'Open browser and navigate to demo AUT site.'
WebUI.openBrowser(GlobalVariable.G_SiteURL)
'Click on \'Book Appointment\' button'
WebUI.enhancedClick(findTestObject('Page_CuraHomepage/btn_MakeAppointment'))
'Close browser'
WebUI.closeBrowser()