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 <span id="st" name="st" class="st0">files</span> you sent. I could not reproduce the problem. </blockquote><div><br>
After you mentioned the bug related to underscore character, I know the reason you did not manage to reproduce the problem.<br>
Some names of my pdf files have underscore, so the setcontext does not work since it uses the pdf file name.<br>
<br>
<span class="e" id="q_107792afd570b77c_5"><span>for i in range(0, len(files)):<br>
selectmenuitem('frmPDFViewer',
'mnuFile;mnuOpen') # if the last
setcontext() used a name with underscore then selectmenuitem() fails.<br> if waittillguiexist('dlgLoadfile'):
<br> click('dlgLoadfile', 'btnOpen')<br> wait(1)<br> selectrowindex('dlgLoadfile', 'tblFiles', i)<br> click('dlgLoadfile', 'btnOpen')<br>
setcontext(title_name, files[i]) # if
files[i] has underscore the bug is triggered in the next function that
uses the window name<br> print i<br> wait(10)</span></span><br>
</div></div><br>
BR,<br>
<br>
Mauricio Lin.<br>