Hey Mike
Thanks for your quick reply! I've looked at GREDOM and indeed it seems to expose the functionality I'd like, but I cannot get it to traverse the DOM. In a function with many screens and controls, I call:
- Code: Select all
require("gredom")
local dom_obj = gredom.get_application()
local child_list = dom_obj:get_children()
print("DOM obj count: " .. #child_list)
This prints "DOM obj count: 0" which is very confusing to me. I know the idea of DOM from HTML development, where I simply take "document" and then traverse down to the children I like, but I cannot traverse this DOM somehow?
Best regards,
Benjamin
PS:
On your documentation page, it says
- Code: Select all
Gets the Storyboard type of the specified DOMOBJECT. The type may be one of gredom.APP, gredom.SCREEN, gredom.LAYER, gredom.LAYER_INSTANCE, gredom.GROUP grecom.CONTROL, gredom.TABLE, gredom.TEMPLATE.
There seems to be an error with the CONTROL element, it says "grecom" instead of "gredom" and a comma is missing.