[LDTP-Dev] error message 'Gedit window does not exist'

Nagappan A nagappan at gmail.com
Wed Feb 4 13:55:58 PST 2009


Hello Houda,

Chances that:

You might not have enabled accessibility ? You need to logout and login once
you enable it.

If enabled:

in python prompt, try to run the command

>>> from dltp import *
>>> getwindowlist ()

and see what the result is. If its an empty list, then there is some issue,
you may need to debug it further.

Open two gnome-terminals

In first terminal (make sure the scroll page option is atleast 10000 lines -
Edit>Profile Preferences):

$ killall ldtp
$ export LDTP_DEBUG=2
$ ldtp

In second terminal:

python
>>> from ldtp import *
>>> getwindowlist ()

Now from terminal 1, copy the contents and paste it in a file and upload it
some where or in www.pastebin.com and send the link.

Thanks
Nagappan

On Wed, Feb 4, 2009 at 2:16 AM, houda hocine <houda.qt4 at gmail.com> wrote:

> Hi ,
> I am novice in the use of "ldtp" I have installed them and I tested the
> following example:
>
> #!/usr/bin/env python
> from ldtp import *
> from ldtputils import *
>
> launchapp ('gedit')
> if waittillguiexist ('*-gedit') == 0:
>     raise LdtpExecutionError ('Gedit window does not exist')
>
> it create the new file "gedit" but I always have the following  error
> message :
>
> GTK Accessibility Module initialized
> Bonobo accessibility support initialized
> Traceback (most recent call last):
>   File "./ldtptest.py", line 8, in <module>
>     raise LdtpExecutionError ('Gedit window does not exist')
> ldtplib.ldtplibutils.LdtpExecutionError: 'Gedit window does not exist'
>
> you can help me please ?
> thank you in advance
>
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>
>


-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/ldtp-dev/attachments/20090204/fcf14bcb/attachment.htm 


More information about the LDTP-dev mailing list