How to identify elements on Java swing application?

2k Views Asked by At

I am trying to automate java swing application using Winium. To identify properties of elements I have used UISpy.exe and Inspect.exe. But both are failed to identify elements on my swing application. However, both are working when I am trying to identify elements on Windows Notepad application.

2

There are 2 best solutions below

0
On

To automate swing ui in Java, Jemmy is the good option.

Even the same one is available as RobotFramework keyword library in the name SwingLibrary.

0
On

You have to do a bit research for testing swing application.

Winium is not one of them.

Supported Platforms

Windows Desktop (WPF, WinForms) Apps
Windows Store or Universal Apps for Windows Phone
Windows Phone Silverlight Apps

Try with

AssertJ

Sikuli