If statement works in Katalon Studio, but not in Jenkins slave


The following test executes in IE if I use Studio Katalon in a Jenkins slave, but it doesn’t work if I run the job from the Jenkins master.

It doesn’t find the object after the if.

Any help is welcome.




if ( WebUI.verifyElementPresent(findTestObject(‘Object Repository/My_page/input_Username_username’), 4, FailureHandling.OPTIONAL)==true)

WebUI.waitForElementPresent(findTestObject(‘Object Repository/My_page/input_Username_username’), 3)

WebUI.setText(findTestObject(‘Object Repository/My_page/input_Username_username’), ‘myuser’)

‘Specify the password’
WebUI.setEncryptedText(findTestObject(‘Object Repository/My_page/input_Password_password’), ‘my password’)

‘Click on signin’
WebUI.click(findTestObject(‘Object Repository/My_page/button_Sign in’))


WebUI.click(findTestObject(‘Object Repository/My_page/myObject’))

I was wondering if all this is because when I execute with slave IE is not opening, and this mode doesn’t work very well for this specific browser.

Any help is welcome.


I am facing a similar issue as well. The if statement is working fine in Local Katalon Studio, but not in Jenkins. Did you arrive at a solution?. Would appreciate the help. Thanks!