Hi Scott,<br><br>Its a bug :) Have fixed it in git. The issue was the window name was not in LDTP format. I think this has to be documented. Will fix these issues in LDTPv2.<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">
On Sat, Nov 14, 2009 at 7:13 PM, Wang Qi, Scott <span dir="ltr"><<a href="mailto:wangqi.s@gmail.com">wangqi.s@gmail.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;">
Hi, <br><br>I tried the callback example at <a href="http://ldtp.freedesktop.org/user-doc/index.html" target="_blank">http://ldtp.freedesktop.org/user-doc/index.html</a> on Ubunt 9.04 with LDTP 1.7.1.<br><br>It seems as soon as the first callback function 'cb' is triggered. It raise a exception.<br>
<br>>>> onwindowcreate('Replace', cb)<br>1<br>>>> onwindowcreate('dlgFind', cbwithvarargs, 'test', 'var', 'args')<br>1<br>>>> click('*gedit', 'btnReplace')<br>
1<br>>>> Unhandled exception in thread started by <function invokecallback at 0xa4f087c><br>Traceback (most recent call last):<br> File "/var/lib/python-support/python2.6/ldtp.py", line 351, in invokecallback<br>
callback = _callbackFunctions.get (_responseData [1])[0]<br>TypeError: 'NoneType' object is unsubscriptable<br><br>But the callback with arguments works just fine. Is this a bug?<br><br>Another observation is that it seems the default gedit installed with Ubuntu 9.04 only allow a single dialog to be pop-up in front of main window. <br>
<br>click('*gedit', 'btnReplace') # This will pop up the Replace dialog.<br>click('*gedit', 'btnFind') # But this one only highlight the Find button.<br><br>Therefore, this example may not work any more as intended originally.<br>
<br>Thanks<br><font color="#888888">Scott<br><br>
</font><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>
<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>