[LDTP-Dev] about "Unable to find window"
esolve esolve
esolvepolito at gmail.com
Thu Oct 11 15:04:11 PDT 2012
on machine A, for both of the firefox and the modified firefox, I can use
LDTP successfully
on machine B,
for the modified Firefox, which is Tor browser bundle, there is "Unable to
find window" error
but for Firefox, I can use selectmenuitem ('*Firefox', 'mnuTools;Add-ons')
successfully, so I think on machine B
accessibility may not be an issue
2012/10/11 Nagappan Alagappan <nagappan at gmail.com>
> Hi Esolve,
>
> On Thu, Oct 11, 2012 at 1:03 PM, esolve esolve <esolvepolito at gmail.com>wrote:
>
>> I have 2 laptop A and B, A is with fedora 16 and 64bit, B is with fedora
>> 16 and i686
>>
>> I'm using a modified firefox called Tor browser bundle.
>>
>> for firefox, on both A and B , I can use selectmenuitem ('*Firefox',
>> 'mnuTools;Add-ons') successfully
>>
>> for the modified firefox, the window title is "Tor Browser Start Page -
>> Tor Browser"
>>
>> I use selectmenuitem ('*Browser', 'mnuTools;Add-ons') successfully on
>> A,
>>
>> but on B
>>
>> >>> selectmenuitem ('*Browser','mnuTools;Add-ons'
>> )
>>
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "/usr/lib/python2.7/site-packages/ldtp/client.py", line 69, in
>> __call__
>> return self.__send(self.__name, args)
>> File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
>>
>> verbose=self.__verbose
>> File "/usr/lib/python2.7/site-packages/ldtp/client.py", line 184, in
>> request
>> raise LdtpExecutionError(e.faultString.encode('utf-8'))
>> ldtp.client_exception.LdtpExecutionError: Unable to find window "*Browser"
>>
>> and "guiexist()" test result is also 0
>> generally speaking, what are the reasons for this error? can anyone
>> give me some hint? thanks!
>>
>
> I guess, accessibility wasn't set. Can you please try getwindowlist() ? If
> it returns empty list, then for sure your accessibility is not enabled, you
> need to enabled and re-login.
>
> Thanks
> Nagappan
>
>
>>
>> _______________________________________________
>> 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
> Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra
> http://nagappanal.blogspot.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20121012/b6a119a6/attachment.html>
More information about the LDTP-dev
mailing list