Hello Houda,<br><br>Chances that:<br><br>You might not have enabled accessibility ? You need to logout and login once you enable it.<br><br>If enabled:<br><br>in python prompt, try to run the command<br><br>>>> from dltp import *<br>
>>> getwindowlist ()<br><br>and see what the result is. If its an empty list, then there is some issue, you may need to debug it further.<br><br>Open two gnome-terminals<br><br>In first terminal (make sure the scroll page option is atleast 10000 lines - Edit>Profile Preferences):<br>
<br>$ killall ldtp<br>$ export LDTP_DEBUG=2<br>$ ldtp<br><br>In second terminal:<br><br>python<br>>>> from ldtp import *<br>>>> getwindowlist ()<br><br>Now from terminal 1, copy the contents and paste it in a file and upload it some where or in <a href="http://www.pastebin.com">www.pastebin.com</a> and send the link.<br>
<br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Wed, Feb 4, 2009 at 2:16 AM, houda hocine <span dir="ltr"><<a href="mailto:houda.qt4@gmail.com">houda.qt4@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi , <br>I am novice in the use of "ldtp" I have installed them and I tested the following example:<br><br>#!/usr/bin/env python<br>from ldtp import *<br>from ldtputils import *<br><br>launchapp ('gedit')<br>
if waittillguiexist ('*-gedit') == 0:<br> raise LdtpExecutionError ('Gedit window does not exist')<br><br>it create the new file "gedit" but I always have the following error message : <br><br>
GTK Accessibility Module initialized<br>Bonobo accessibility support initialized<br>Traceback (most recent call last):<br> File "./ldtptest.py", line 8, in <module><br> raise LdtpExecutionError ('Gedit window does not exist')<br>
ldtplib.ldtplibutils.LdtpExecutionError: 'Gedit window does not exist'<br><br>you can help me please ?<br>thank you in advance<br></div>
<br>_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>