[LDTP-Dev] child of a child

Ara Pulido ara at ubuntu.com
Tue Aug 12 05:41:49 PDT 2008


Hello all!

I have this code: (ooldtp)

try:
    updateManager = context(ubuntu_constants.UM_WINDOW)
except LdtpExecutionError, msg:
    raise LdtpExecutionError, "The Update Manager window was not found:
" + str(msg)
        
try:
     changes = updateManager.getchild('Changes')
     text = changes.getchild(role='text')
     print text[0]
     

I know this code is not correct, as changes is not a context and,
therefore, it does not have a getchild method. But my question is, how
do I get a child of a child. The problem is that the accesibility
information is not complete and the text of the Changes tab does not
have a name. If I do updateManager.getchild(role='text'), it won't be
possible to know which text component from the returned list is the one
that comes from the 'Changes' tab (or there is???).

Do you know any hack or workaround to do this?

Thanks,
Ara.



More information about the LDTP-dev mailing list