Hello,
I am facing an issue while verifying an object using the verify element visible command. My scripts looks like this:
def ispresent = WebUI.verifyElementVisible(findTestObject(‘Object Repository/monthageingrepobyuser/export/exporttoexcel’), FailureHandling.OPTIONAL)
println(ispresent)
Export to excel object looks like this:
using object spy, I am able to capture this object.
But while running the script I am receiving the following error:
2019-04-09 09:39:08.750 e[39mDEBUGe[0;39m e[36mtestcase.monthageingrepbyuser -e[0;39m e[39m6: ispresent = verifyElementVisible(findTestObject(“Object Repository/monthageingrepobyuser/export/exporttoexcel”), OPTIONAL)e[0;39m
2019-04-09 09:39:08.751 e[31mWARN e[0;39m e[36mc.k.k.core.testobject.ObjectRepository -e[0;39m e[39mCannot find test object with id ‘Object Repository/monthageingrepobyuser/export/exporttoexcel’ because of 'org.dom4j.DocumentException: Error on line 47 of document file:///D://projectpath/Object%20Repository/monthageingrepobyuser/export/exporttoexcel.rs : The character sequence “]]>” must not appear in content unless used to mark the end of a CDATA section. Nested exception: The character sequence “]]>” must not appear in content unless used to mark the end of a CDATA section.'e[0;39m
2019-04-09 09:39:08.751 e[31mWARN e[0;39m e[36mc.k.k.core.testobject.ObjectRepository -e[0;39m e[39mTest object with id ‘Object Repository/’ does not existe[0;39m
2019-04-09 09:39:09.164 e[31mWARN e[0;39m e[36mc.k.k.core.keyword.internal.KeywordMain -e[0;39m e[39mUnable to verify object is visiblee[0;39m
2019-04-09 09:39:09.180 e[39mDEBUGe[0;39m e[36mtestcase.monthageingrepbyuser -e[0;39m e[39m7: println(ispresent)e[0;39m
false
Eventhough its a warning, katalon still not identifying the object even if its existing.
Any hint on this?
Thanks,
Neethu