Ranorex not identifying Java applet components in browser

Ask general questions here.
hi2suresh
Posts: 5
Joined: Mon Aug 15, 2016 7:00 am

Ranorex not identifying Java applet components in browser

Post by hi2suresh » Thu Aug 18, 2016 2:51 am

Hi,

We are trying to automate a web application that contains java applets, specifically Canvas objects.
There are multiple elements inside the canvas object (screen shots attached) that we need to interact with. but Ranorex is not able to identify elements inside the canvas object. Its not working out of the box, so is it possible to customize Ranorex to make it work with Java applets?

System information:

Ranorex version: 6.01
Browser Version: IE 11.0
OS: Windows 7 64 bit

Thanks and Regards,
Suresh
Attachments
JavaApplet_Canvas2.png
JavaApplet_Canvas2.png (173.86 KiB) Viewed 553 times
JavaApplet_Canvas.png
JavaApplet_Canvas.png (198.56 KiB) Viewed 553 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3945
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex not identifying Java applet components in browser

Post by odklizec » Thu Aug 18, 2016 11:53 am

Hi,

I'm afraid, there is nothing at Ranorex side that can be done to make it to recognize individual elements inside the Java canvas. Currently, your best hope is using Ranorex image-based recognition.

The only way how to make the Canvas elements recognizable by Ranorex is to implement proper accessibility in your Java app, but it may not be an easy thing. Please follow the similar topics discussed here:
http://www.ranorex.com/forum/image-base ... t8097.html
http://www.ranorex.com/forum/html5-how- ... t8341.html
http://www.ranorex.com/forum/unable-to- ... t8749.html
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

hi2suresh
Posts: 5
Joined: Mon Aug 15, 2016 7:00 am

Re: Ranorex not identifying Java applet components in browser

Post by hi2suresh » Fri Aug 19, 2016 12:41 am

Thanks for the reply.

Best Regards,
Suresh