Recognizing Custom Swing Components

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 1
Joined: Thu Feb 13, 2020 3:24 am

Recognizing Custom Swing Components

Post by DenizAga » Thu Feb 13, 2020 3:29 am

Hi Guys,

I'm working on a Java Swing application that uses custom components, this results in the Ranorex spy not recognizing the component.

Would it be possible to modify our application code so that Ranorex can access and interact with the custom component?

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

Re: Recognizing Custom Swing Components

Post by odklizec » Thu Feb 13, 2020 11:56 am


Yes, it should be possible to make the custom component compatible with Ranorex, by implementing proper accessibility support. Here is an old, but still valid article, how to implement accessibility to 3rd party controls. Of course, these steps are general steps and must be modified for Java-based app... ... -controls/
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