[LDTP-Dev] child of a child

Nagappan A nagappan at gmail.com
Tue Aug 12 08:44:51 PDT 2008


Hi Ara,

As of now, you can find the immediate children using

>>> getobjectproperty ('*-gedit', 'mnuEdit', 'childrens')
u'ukn1 mnuUndo mnuRedo mnuCut mnuCopy mnuPaste mnuDelete mnuSelectAll
mnuInsertDateandTime mnuPreferences mnuEmpty1'

The output is space separated value. If you want this as a list, probably we
can fix this !

Do you want all the children to be listed under mnuEdit, even though its not
directly bounded with it ?

Thanks
Nagappan

On Tue, Aug 12, 2008 at 5:41 AM, Ara Pulido <ara at ubuntu.com> wrote:

> 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.
>
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>



-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/ldtp-dev/attachments/20080812/1b321ee7/attachment.html 


More information about the LDTP-dev mailing list