I have got an idea.
I would be able to develop custom keywords that modifies the globalSmartWaitEnabled property and the localSmartWaitEnabled property ON and OFF on the fly to override the "Project > Settings > Execution > Web UI > Default Smart Wait” setting.
That is, I believe, what @kevin.jackey wants.
In the Keyword dir, make a package “com.kazurayam.ks” and a class
package com.kazurayam.ks
import com.kms.katalon.core.configuration.RunConfiguration
import com.kms.katalon.core.exception.StepFailedException
import com.kms.katalon.core.model.FailureHandling
import com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain
public class ToggleSmartWait {
public static void toggleON() throws StepFailedException {
WebUIKeywordMain.runKeyword({
RunConfiguration.getExecutionProperties().put(RunConfiguration.GLOBAL_SMART_WAIT_MODE, true)
RunConfiguration.getExecutionProperties().put(RunConfiguration.LOCAL_SMART_WAIT_MODE, true)
}, FailureHandling.CONTINUE_ON_FAILURE, true, "Unable to enable smart wait !")
}
public static void toggleOFF() throws StepFailedException {
WebUIKeywordMain.runKeyword({
RunConfiguration.getExecutionProperties().put(RunConfiguration.LOCAL_SMART_WAIT_MODE, false);
}, FailureHandling.CONTINUE_ON_FAILURE, true, "Unable to disable smart wait !");
}
}
That’s all we need.