[LDTP-Dev] Simple python script is not working

Mauricio Lin mauriciolin at gmail.com
Thu Oct 20 08:07:26 PDT 2005


Hi all,

I have followed the instruction from
http://gnomebangalore.org/ldtp/index.php/How_to_create_Test_Scripts_for_PY-LDTPin
order to create my simple script, but it is not working.

The error message is printed as follow:

Traceback (most recent call last):
File "teste.py", line 9, in ?
selectmenuitem ('gedit', 'mnuFile;mnuOpen')
ldtp.error: Unable to get gui handle ldtp.c 1236

This happens after I execute the python script.

**************************************************************
from ldtp import *
from ldtputils import *
import sys, string

initappmap('/home/mauricio/teste/gedit.map')

launchapp('gedit')

selectmenuitem ('gedit', 'mnuFile;mnuOpen')

click ('gedit', 'btnOpen')
**************************************************************

Any idea?

BR,

Mauricio Lin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/ldtp-dev/attachments/20051020/c9512b58/attachment.html


More information about the Ldtp-dev mailing list