Does anyone have example Groovy code to iterate over all childs of a Test object and print out the children?
You can get the parent of an TestObject with “.getParentObject()”. But I dont see any method for retrieving the children or siblings.
Problem I have is that there is a page flagged as “secure”. The page contains 6 input boxes for the a pin code.
When I use the “Spy Mobile” or “Record Mobile” option it only detects those 6 boxes as ImageView objects.
Even after tapping on the ImageView object (one part of the 6 digit pin code) it still records the test object as an ImageView. I cannot set text (number) on an ImageView. Usually when you tap on an ImageView it transforms into an EditText or some other element in which you can set the value. It does not happen in the Spy or Record Mobile browser.
So I want to know, by programmatically iterating the children of the parent element, which test object i have to use to set the value on the 6 boxes.
The page flagged as “Secret”:
Katalon test objects: