[LDTP-Dev] my gpdf script is not working at ldtp 0.2.1

Prashanth Mohan prashmohan at gmail.com
Sat Oct 29 00:40:11 PDT 2005


On Fri, 2005-10-28 at 16:57 -0400, Mauricio Lin wrote:
> Hi all,
> 
> I have recently installed the ldtp 0.2.1 on my debian system.
> 
> The script I have it works on ldtp 0.2.0 but a strange error is
> happening when I use on ldtp 0.2.1.
> 
> Take a look the piece of code:
> 
> # load several pdf files
> 
> for i in range(0, len(files)):
>     selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')
>     if waittillguiexist('dlgLoadfile'):
>         click('dlgLoadfile', 'btnOpen')
>         wait(1)
>         selectrowindex('dlgLoadfile', 'tblFiles', i)
>         click('dlgLoadfile', 'btnOpen')
>         setcontext(title_name, files[i])
>         print i
>         wait(10)
> 
> It works well on ldtp 0.2.0, but the following message is printed on
> ldtp 0.2.1.
> 
> ./gpdf_1.py
> 0
> 1
> 2
> 3
> 4
> 5
> Traceback (most recent call last):
>   File "./gpdf_1.py", line 16, in ?
>     selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')
> ldtp.error: Window: frmPDFViewer not opened

It seems that gui.c is not able to find the gui handle. This is the
default error message which pops up. Prem and Nagappan are out of town
for diwali celebrations. Hope you will hear from them soon :-)
> 
> Notice that after the variable i is printed until 5 and when this
> variable is 6  the error is printed. 
> 
> Is it a bug from ldtp 0.2.1?
> 
> BR,
> 
> Mauricio Lin.
> _______________________________________________
> Ldtp-dev mailing list
> Ldtp-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
-- 
Prashanth Mohan <prashmohan at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/ldtp-dev/attachments/20051029/2b16b5f7/attachment.pgp


More information about the Ldtp-dev mailing list