Hi Mauricio Lin<br>
<br>
I tried with the files you sent. I could not reproduce the problem. I
could open 9 windows with your script. I am on SUSE 10 machine. And I
dont think the number of tries will matter and there must be timing
issues which might actually cause the window to appear slowly. Also
please check the file on which it is failing, may be try and open it
manually. BTW, is the window open (corresponding to the file on which
the script files) when u see the error ?<br>
<br>
Please add if you have any thing else that would help in resolving this issue.<br>
<br>
Regards<br>
Premkumar<br><br><div><span class="gmail_quote">On 11/9/05, <b class="gmail_sendername">Mauricio Lin</b> &lt;<a href="mailto:mauriciolin@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mauriciolin@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Premkumar,<br>
<br>
The files are attached.<br><br>
Before you run the script, you have to create a directory named as
'pdf_files' and add some pdf files in such directory. The script is
quite simple, so you can check it easily.<br>
The error only happens when it tries to open more than 6 pdf files, so
keep in mind you have to add at least 7 files in the directory.<br>
<br>
Thanks in advance,<br><span>
<br>
Mauricio Lin.</span><div><span><br>
<br><div><span class="gmail_quote">On 11/8/05, <b class="gmail_sendername">J Premkumar</b> &lt;<a href="mailto:jpremkumar@novell.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jpremkumar@novell.com
</a>&gt; wrote:</span><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>First of all I should thank you for excersing ldtp across its length and<br>breadth, and helping us to build a more reliable LDTP. Keep up the good<br>work :)<br><br>Regarding the bug you have reported, it seems to me that it is not a bug
<br>in ldtp. But I am not very clear about the scenario either. If you can<br>send the map file along with the script, I will try and reproduce the<br>problem. May be I can give a clear explanation regarding this problem
<br>
then.<br><br>Regards<br>Premkumar<br><br>&gt;&gt;&gt; Prashanth Mohan &lt;<a href="mailto:prashmohan@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">prashmohan@gmail.com</a>&gt; 10/29/05 1:10 PM &gt;&gt;&gt;
<br>On Fri, 2005-10-28 at 16:57 -0400, Mauricio Lin wrote:
<br>&gt; Hi all,<br>&gt;<br>&gt; I have recently installed the ldtp 0.2.1 on my debian system.<br>&gt;<br>&gt; The script I have it works on ldtp 0.2.0 but a strange error is<br>&gt; happening when I use on ldtp 0.2.1.<br>


&gt;<br>&gt; Take a look the piece of code:<br>&gt;<br>&gt; # load several pdf files<br>&gt;<br>&gt; for i in range(0, len(files)):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if waittillguiexist('dlgLoadfile'):
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; click('dlgLoadfile', 'btnOpen')<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wait(1)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectrowindex('dlgLoadfile', 'tblFiles', i)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; click('dlgLoadfile', 'btnOpen')<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setcontext(title_name, files[i])
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print i<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wait(10)<br>&gt;<br>&gt; It works well on ldtp 0.2.0, but the following message is printed on<br>&gt; ldtp 0.2.1.<br>&gt;<br>&gt; ./gpdf_1.py<br>&gt; 0<br>&gt; 1<br>&gt; 2<br>&gt; 3
<br>&gt; 4<br>&gt; 5<br>&gt; Traceback (most recent call last):<br>&gt;&nbsp;&nbsp; File &quot;./gpdf_1.py&quot;, line 16, in ?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')<br>&gt; ldtp.error: Window: frmPDFViewer not opened
<br><br>It seems that gui.c is not able to find the gui handle. This is the<br>default error message which pops up. Prem and Nagappan are out of town<br>for diwali celebrations. Hope you will hear from them soon :-)<br>&gt;
<br>&gt; Notice that after the variable i is printed until 5 and when this<br>&gt; variable is 6&nbsp;&nbsp;the error is printed.<br>&gt;<br>&gt; Is it a bug from ldtp 0.2.1?<br>&gt;<br>&gt; BR,<br>&gt;<br>&gt; Mauricio Lin.<br>&gt; _______________________________________________
<br>&gt; Ldtp-dev mailing list<br>&gt; <a href="mailto:Ldtp-dev@lists.freedesktop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Ldtp-dev@lists.freedesktop.org</a><br>&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
</a><br>--<br>Prashanth Mohan &lt;<a href="mailto:prashmohan@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">prashmohan@gmail.com</a>&gt;<br><br></blockquote></div><br>

</span></div><br>_______________________________________________<br>Ldtp-dev mailing list<br><a href="mailto:Ldtp-dev@lists.freedesktop.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Ldtp-dev@lists.freedesktop.org
</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br><br><br><br clear="all">

</blockquote></div><br>