The below html script is part of an application page loaded using Katalon webdriver open command:
Html script:
<script type="text/javascript" id="app_init" src="http://<hostname>:<port>/feature.js" ></script>
Function in feature.js:
var isFeatureReady = false;
function setFeatureReady(){
isFeatureReady = true;
}
The plan is to execute the setFeatureReady function as part of webdriver javascript command to set the flag:
Please guide the way to trigger the function using commands

