Hi all,<br>
<br>
I ha used waittillguiexist() function often and I noticed a strange behaviour after testing this function many times.<br>
<br>
Look the snippet of code:<br>
<br>
if waittillguiexist('dlgLoadfile'):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selectrow('dlgLoadfile', 'tblFiles', 'pdf_files')<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>
<br>
This code works, but sometimes it fails and the following message is displayed on my terminal:<br>
<br>
Traceback (most recent call last):<br>
&nbsp; File &quot;./gpdf_1.py&quot;, line 18, in ?<br>
&nbsp;&nbsp;&nbsp; selectrow('dlgLoadfile', 'tblFiles', 'pdf_files')<br>
ldtp.error: unknown - not yet implemented ldtp.c 714 command: 234<br>
<br>
So if I change the code as:<br>
<br>
if waittillguiexist('dlgLoadfile'):<br>
&nbsp;&nbsp;&nbsp; wait(1)<br>
&nbsp;&nbsp;&nbsp; selectrow('dlgLoadfile', 'tblFiles', 'pdf_files')<br>
&nbsp;&nbsp;&nbsp; ...<br>
<br>
It works without error. I guess even waittillguiexist() waits for the
window, sometimes it is not able to wait enough for the window to
appear.<br>
<br>
Is it normal?<br>
<br>
BR,<br>
<br>
Mauricio Lin.<br>
<br>
<br>