[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
Click on the given element using various trial-and-error methods.
Keyword name: enhancedClick
Parameters
Parameter | Parameter Type | Required | Description |
---|---|---|---|
to | TestObject | Yes | 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()