Skip to main content

[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

ParameterParameter TypeMandatoryDescription
toTestObjectRequiredAn object representing a web element.
flowControlFailureHandlingOptionalSpecify 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()