The command WebUI.waitForElementClickable do not wait

In the katalon version 9.7.7 the command WebUI.waitForElementClickable do not wait for the time that was set and the test fail because of that.

2 Likes

hi @joao.atenor

i’m curious how you concluded that the WebUI.waitForElementClickable() command does not wait for the specified timeout

how are you certain that the issue comes from this command and not from your own script?

to verify whether your assumption is correct, try using the WebUI.verifyElementClickable() command to check properly whether the element you’re interacting with is actually clickable or not

1 Like

I don’t understand what you mean by this.

Please show the log so that we can understand what you mean.

1 Like

kindly share the code triggering the issue, error logs, application screenshot

1 Like

It is not returning any error, in the past works properly but now is not working. The issue is the katalon do not wait for element clickable. Something happen could be a update on browser.

1 Like

Please try upgrading the WebDriver. See the following instruction:

I already do that and the issue persist

I have no more idea.

Hi @joao.atenor,

If you do not receive any error, can you please share with us recording of all your actions? As currently, the issue is quite ambiguous. Thank you

@joao.atenor share the exact steps with code triggering the issue, error logs, application screenshot

Have you tried @depapp suggestion further up? That seems like a solid way to check the situation

Based on my research of the official Katalon documentation and release notes, here’s what I found:

Problem Analysis

You’re reporting that in Katalon Studio 9.7.7, the WebUI.waitForElementClickable command is not respecting the timeout parameter you set, causing tests to fail prematurely.

Root Cause: Status Unknown

According to the Katalon Studio Release Notes for Version 9.7.7, the fixes listed are:

  • :white_check_mark: [BDD] Tests with Custom Keywords in Cucumber step definitions failed to execute in KRE
  • :white_check_mark: [Execution] External library JAR files failed to load in time during test execution in KRE

There is NO mention of a WebUI.waitForElementClickable timeout bug in version 9.7.7.

This means the issue is either:

  1. Unconfirmed - Not yet documented as a known bug
  2. Environment-specific - Related to your specific setup
  3. Configuration issue - Related to how the timeout is being set

Official Documentation on WebUI.waitForElementClickable

According to the official documentation:

Parameters:

Parameter Type Required Description
to TestObject Yes Represents a web element
timeout int Yes System will wait at most timeout (seconds) to return result
flowControl FailureHandling Optional Failure handling schema

Example Usage:

WebUI.waitForElementClickable(findTestObject('Page_CuraHomepage/btn_MakeAppointment'), 20)

Troubleshooting Steps

  1. Verify the timeout parameter is an integer (in seconds)

    // âś… Correct
    WebUI.waitForElementClickable(findTestObject('your_object'), 30)
    
    // ❌ Wrong - timeout should be in seconds, not milliseconds
    WebUI.waitForElementClickable(findTestObject('your_object'), 30000)
    
  2. Check if the element is actually clickable

    • The command waits for the element to be both visible AND clickable
    • If the element is disabled or covered by an overlay, it will timeout
  3. Add failure handling to diagnose the issue

    WebUI.waitForElementClickable(
        findTestObject('your_object'), 
        30, 
        FailureHandling.CONTINUE_ON_FAILURE
    )
    
  4. Check your project’s default timeout settings

    • Go to Project Settings > Execution > Default wait for element timeout
    • This might be overriding your explicit timeout value

Recommendation

Since this is not documented as a known bug in 9.7.7, I recommend:

  1. Upgrade to the latest version (9.7.7 is recent, but check for 9.7.8 or later)

  2. Report this as a bug if the issue persists after troubleshooting

  3. Use a workaround in the meantime:

    // Alternative: Use WebUI.waitForElementPresent + WebUI.click with retry logic
    WebUI.waitForElementPresent(findTestObject('your_object'), 30)
    WebUI.click(findTestObject('your_object'))
    

References:

Hi @joao.atenor,

Have you got your issue resolved? If yes, feel free to share your workaround with us. If no, please give more information. Thank you

The issue was solved by update the katalon to version 10 due to Chrome WebDriver v142, Google has removed support for loading unpacked extensions.

Katalon studio relies on unpacked extensions to enable key recording, spying features and Smart Wait. The issue was solved only in version 10.4.2.

I will close the topic as solved.

Thank you for all.

1 Like