When I’m executing with Chrome opening navigator… all execution is ok. But I when executing in Headless chrome …
Katalon show this message of error…
[Unable to verify object ‘Object Repository/Pages/Mantenedor/DetallesEstrategias/Modales/modal-info’ is present (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object ] Repository/Pages/Mantenedor/DetallesEstrategias/Modales/modal-info’ located by ‘By.xpath: //div[@id = ‘info-modal’]’ not found)
This is code …where is the problem…**
TestObject modalSaveStrategy = ObjectRepository.findTestObject(“Object Repository/Pages/Mantenedor/DetallesEstrategias/Modales/modal-info”) ← this is element that is not found **
TestObject modalSaveStrategyEdit = ObjectRepository.findTestObject(“Object Repository/Pages/Mantenedor/Modales/modal_exito_edit”)
TestObject btnSaveStrategy = ObjectRepository.findTestObject(“Object Repository/Pages/Mantenedor/DetallesEstrategias/button_save_strategy”)
if(WebUI.verifyElementPresent(btnSaveStrategy, 5)){
WebUI.click(btnSaveStrategy)
}
if(action==“Insert” || action==“InsertCP”){
if(WebUI.verifyElementPresent(modalSaveStrategy, 5)) { <== here is the problem
WebUI.comment(WebUI.getText(modalSaveStrategy))
KeywordUtil.markPassed("Estrategia insertada : " + strategy.name)
}
}
Please helme …
Sorry for my bad english, not is my native language …