Hi Premkumar,<br><br><div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Premkumar Jothimani</b> <<a href="mailto:prem.jothimani@gmail.com">prem.jothimani@gmail.com</a>> 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>
0<br>
1<br>
2<br>
3<br>
4<br>
5<br>
Traceback (most recent call last):<br>
File "./gpdf_1.py", line 16, in ?<br>
selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')<br>
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>
selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')<br>
if waittillguiexist('dlgLoadfile'):<br>
<div id="mb_0"> click('dlgLoadfile', 'btnOpen')<br> wait(1)<br> selectrowindex('dlgLoadfile', 'tblFiles', i)<br> click('dlgLoadfile', 'btnOpen')<br> setcontext(title_name, files[i])
<br> print i<br> 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>