[LDTP-Dev] about "Unable to find window"
Nagappan Alagappan
nagappan at gmail.com
Thu Oct 11 16:45:50 PDT 2012
Hi Esolve,
On Thu, Oct 11, 2012 at 3:04 PM, esolve esolve <esolvepolito at gmail.com>wrote:
> 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
>
Interesting to know that, whats the output of getwindowlist() on machine B
? Can you try accerciser app to check whether your browser is visible or
not ? other option is try with equivalent Linux distribution and compare
the result in that environment.
Thanks
Nagappan
>
>
> 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
>>
>
>
> _______________________________________________
> 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/20121011/9a497355/attachment-0001.html>
More information about the LDTP-dev
mailing list