[LDTP-Dev] Accessing Java Applet within Firefox

Bradford Smith bradford.carl.smith at gmail.com
Thu Jul 31 12:24:10 PDT 2008


Excellent!  Now I can see not only my little example applications, but also
the Java applet I actually need to test.  It shows up as part of the Java
Control Panel, for some reason, but I can see it with at-poke.

Thanks a bunch!

Bradford

On Thu, Jul 31, 2008 at 1:49 PM, Nagappan A <nagappan at gmail.com> wrote:

> Hi Bradford,
>
> Apologize for my delayed reply.
>
> Probably you may need to try the steps provided in this link ? to make Java
> Swing accessible.
>
>
> http://ldtp.freedesktop.org/wiki/FAQ#head-f623f1614baae1b443ba275799157793c8c4a247
>
> Thanks
> Nagappan
>
>
> On Wed, Jul 30, 2008 at 7:06 AM, Bradford Smith <
> bradford.carl.smith at gmail.com> wrote:
>
>> Hi, Nagappan et al.
>>
>> Thanks for pointing me toward at-poke and accerciser.  I have found those
>> tools useful.
>>
>> However, I have been unable to get these tools to "see" SWING-based Java
>> applications.  I got the code for some basic Java SWING applications (a
>> "hello world" and a calculator) from a SWING tutorial website and ran them
>> as normal Java applications.  They run fine, but at-poke and accerciser
>> cannot "see" their interfaces at all.  Is it necessary to modify their code
>> to specifically support accessibility?
>>
>> Thanks,
>>
>> Bradford
>>
>> On Wed, Jul 23, 2008 at 1:52 PM, Nagappan A <nagappan at gmail.com> wrote:
>>
>>> Hello Bradford,
>>>
>>> Initially you can try with external tools like at-poke / accerciser, If
>>> the respective window doesn't appear in either of them, then it can't be
>>> operated using LDTP !
>>>
>>> Thanks
>>>  Nagappan
>>>
>>>
>>> On Wed, Jul 23, 2008 at 6:07 AM, Bradford Smith <
>>> bradford.carl.smith at gmail.com> wrote:
>>>
>>>> Thanks for the advice, Nagappan.
>>>>
>>>> Unfortunately, Selenium can't handle Java applets.  I had hoped that
>>>> since http://ldtp.freedesktop.org/wiki/ says LDTP works with "any Java
>>>> application (should have a UI based on swing)", that I could use it with the
>>>> swing-based applet I need to test.
>>>>
>>>> Since the applet does create some windows that appear outside of the
>>>> browser, I tried creating one and passing its title to getobjectlist().
>>>> Unfortunately, I got a 'window doesn't exist' error.  If LDTP can "see"
>>>> windows created by regular swing-based Java applications, why can't it see
>>>> these?  Any ideas?
>>>>
>>>> Thanks,
>>>>
>>>> Bradford
>>>>
>>>>
>>>> On Tue, Jul 22, 2008 at 1:47 PM, Nagappan A <nagappan at gmail.com> wrote:
>>>>
>>>>> Hello Smith,
>>>>>
>>>>> Guess you are using Firefox 3.0 !?! Not sure, how well accessibility
>>>>> support is available for applets inside rendering region. I suggest to try
>>>>> with selenium for the rendering region and anything related to Window
>>>>> management, you can use LDTP. Selenium doesn't support them.
>>>>>
>>>>> getapplist function just returns the list of application name as per
>>>>> accessibility info. getwindowlist, should return all the available windows,
>>>>> but the existing implementation just returns what ever available in internal
>>>>> hashtable. Will consider doing the first (soon).
>>>>>
>>>>> Thanks
>>>>> Nagappan
>>>>>
>>>>> On Tue, Jul 22, 2008 at 8:22 AM, Bradford Smith <
>>>>> bradford.carl.smith at gmail.com> wrote:
>>>>>
>>>>>> Hi, guys.
>>>>>>
>>>>>> I need to automate testing for a Java applet accessed through
>>>>>> Firefox. Can anyone tell me how to find out the window name to use to access
>>>>>> the applet?  When I do getobjectinfo() on the name of the Firefox window, I
>>>>>> don't seem to be getting any of the applet components in the list.
>>>>>>
>>>>>> Also, can anyone tell me what getapplist() is good for? Although the
>>>>>> documentation says it returns window titles, the returned strings don't seem
>>>>>> to work with getobjectlist().  Is there some way to use a string returned by
>>>>>> getapplist() to get a list of the actual titles of windows belonging to that
>>>>>> application?
>>>>>>
>>>>>> Is there some way to get a list of all window titles?  I would expect
>>>>>> getwindowlist() to do this, but it just seems to list windows whose
>>>>>> information has been cached in ldtp due to previous accesses to it with
>>>>>> getobjectlist() or other routines.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Bradford C. Smith
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Linux Desktop (GUI Application) Testing Project -
>>> http://ldtp.freedesktop.org
>>> http://nagappanal.blogspot.com
>>>
>>
>>
>
>
> --
> 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/20080731/799527d2/attachment.html 


More information about the LDTP-dev mailing list