Hi Premkumar,<br><br><div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Premkumar Jothimani</b> &lt;<a href="mailto:prem.jothimani@gmail.com">prem.jothimani@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 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. </blockquote><div><br>
Perhaps there is something wrong with my debian. I am not sure.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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 ?</blockquote><div><br>
The error happens after you open the sixth window as you can see the output I sent you on the first email.<br>
<br>
# ./gpdf_1.py<br>
&nbsp;0<br>
&nbsp;1<br>
&nbsp;2<br>
&nbsp;3<br>
&nbsp;4<br>
&nbsp;5<br>
&nbsp;Traceback (most recent call last):<br>
&nbsp;&nbsp; File &quot;./gpdf_1.py&quot;, line 16, in ?<br>
&nbsp;&nbsp; &nbsp; selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')<br>
&nbsp;ldtp.error: Window: frmPDFViewer not opened<br>
</div><br>
The number printed is just a counter in the for loop:<br>
<br>
for i in range(0, len(files)):<br>
&nbsp;&nbsp; &nbsp; selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')<br>
&nbsp;&nbsp; &nbsp; if waittillguiexist('dlgLoadfile'):<br>
<div id="mb_0">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; click('dlgLoadfile', 'btnOpen')<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; wait(1)<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; selectrowindex('dlgLoadfile', 'tblFiles', i)<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; click('dlgLoadfile', 'btnOpen')<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; setcontext(title_name, files[i])
<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; print i<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; wait(10)</div>
<br>
But I had another solution. I changed the setccontext(title_name,
files[i]) to setcontext(title_name,files[0]). So it works similarly in
this way.<br>
</div><br>
BR,<br>
<br>
Mauricio Lin.<br>