<div dir="ltr">Hi Ara,<br><br>As of now, you can find the immediate children using<br><br>>>> getobjectproperty ('*-gedit', 'mnuEdit', 'childrens')<br>u'ukn1 mnuUndo mnuRedo mnuCut mnuCopy mnuPaste mnuDelete mnuSelectAll mnuInsertDateandTime mnuPreferences mnuEmpty1'<br>
<br>The output is space separated value. If you want this as a list, probably we can fix this !<br><br>Do you want all the children to be listed under mnuEdit, even though its not directly bounded with it ?<br><br>Thanks<br>
Nagappan<br><br><div class="gmail_quote">On Tue, Aug 12, 2008 at 5:41 AM, Ara Pulido <span dir="ltr"><<a href="mailto:ara@ubuntu.com">ara@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all!<br>
<br>
I have this code: (ooldtp)<br>
<br>
try:<br>
updateManager = context(ubuntu_constants.UM_WINDOW)<br>
except LdtpExecutionError, msg:<br>
raise LdtpExecutionError, "The Update Manager window was not found:<br>
" + str(msg)<br>
<br>
try:<br>
changes = updateManager.getchild('Changes')<br>
text = changes.getchild(role='text')<br>
print text[0]<br>
<br>
<br>
I know this code is not correct, as changes is not a context and,<br>
therefore, it does not have a getchild method. But my question is, how<br>
do I get a child of a child. The problem is that the accesibility<br>
information is not complete and the text of the Changes tab does not<br>
have a name. If I do updateManager.getchild(role='text'), it won't be<br>
possible to know which text component from the returned list is the one<br>
that comes from the 'Changes' tab (or there is???).<br>
<br>
Do you know any hack or workaround to do this?<br>
<br>
Thanks,<br>
Ara.<br>
<br>
_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>
</div>