For my test into Katalon Recorder, I’m trying to save in a variable if an element exists, I’m using the command storeElementPresent which allows to return true or false.
I would like to do the same for an attribute of an element: //*[@id="cpm-in-progress-pm-tracking-maintenance"]@ng-reflect-digits
I don’t know exactly which command to use for that (I don’t find the same for Attribute).
I don’t know Katalon Recorder at all. Katalon tells that Katalon Recorder is a Selenium IDE-compabile alternative. So I searched info about Selenium IDE.
The following link tells that in Selenium IDE you can refer to the built-in statusOK variable to check the result of last-executed command. See
verifyElementPresent (locator)
if | !{!statusOK}
Click (...)
endIf
I searched but couldn’t find any URL that tells the availiability of statusOK in Katalon Recorder.
Is the attribute only ‘present’ via a shadow / virtual DOM? (e.g. React, AJAX, etc) If so, you may need to first interact with an element, or trigger its visibility in some other way, in order to verify the attributes.
Hi @mwarren04011990
Altough i like the sollutions you propose, you should be aware that, the current topic is about Katalon Recorder.
Which is a different animal compared with Katalon Studio.
Have the roots in Selenium IDE and so on (feel free to read lot of debates) but such like: WebUI.verifyElementHasAttribute(yourTestObject do not apply for this tool.
Worry not, this toy is unfamilliar for a lot of good experts here …
I was confused also, plenty of the times.
But yeah, is a totally different toy which need different solutions (mostly it requires JS voodoo)