My problem is, that at the GUI are two buttons with ident informations. It depends of the screen resolution which button is visible.
I tried to build my test case by using the “WebUI.clickImage” methode. Therefor I made a screenshot of the button and inserted the image at the TestObject settings.
That works very well when manually executing the TestCase or TestSuite. But when I execute it with jenkins over console mode I got the error
com.kms.katalon.core.exception.StepFailedException: Unable to click on image (Root cause: java.lang.Exception: Cannot recognise image on screen)
My next solution is to check which button is visible and only click on that. But I have no idea how to handle this.
I tried to save the result of “findTestObject” in a List, but failed with casting or other errors.
Does anyone has a hint for me?