Hi Nagappan,<div><br></div><div>Thanks for the quick reply.</div><div><br></div><div>What about this observation?</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(68, 68, 68); ">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.</span></div>
<div><font class="Apple-style-span" color="#444444" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><span class="Apple-style-span" style="font-size: 13px; "></span><font class="Apple-style-span" color="#444444" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Thanks</span></font></div>
<div><font class="Apple-style-span" color="#444444" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Scott<br></span></font><br><div class="gmail_quote">On Sun, Nov 15, 2009 at 12:41 PM, Nagappan Alagappan <span dir="ltr"><<a href="mailto:nagappan@gmail.com">nagappan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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"><div><div></div><div class="h5">
On Sat, Nov 14, 2009 at 7:13 PM, Wang Qi, Scott <span dir="ltr"><<a href="mailto:wangqi.s@gmail.com" target="_blank">wangqi.s@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div><div></div><div class="h5">
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></div></div>_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org" target="_blank">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><font color="#888888"><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a><br>
</font></blockquote></div><br></div>