WebUI.click() does not click in some test environments
WebUI.click()
keyword is sometimes does not click when executing tests in certain environments, there is no error message.
Selenium WebDriver checks two preconditions when we click a web element:
The element must be visible.
It must have a height and width greater than 0px.
We suggest using the JavascriptExecutor like the sample below instead of using the
WebUI.click()
keyword: import com.kms.katalon.core.webui.common.WebUiCommonHelper as WebUiCommonHelper
import org.openqa.selenium.WebElement as WebElement
WebElement element = WebUiCommonHelper.findWebElement(findTestObject('your/object'),30) WebUI.executeJavaScript("arguments[0].click()", Arrays.asList(element))