r/javahelp • • Dec 24 '22

How do we automate a java application?

How can we get the DOM structure of a java application and automate it? Can we use JAAPI ?

0 Upvotes

13 comments sorted by

View all comments

3

u/dionthorn this.isAPro=false; this.helping=true; Dec 24 '22

https://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html

This class is used to generate native system input events
for the purposes of test automation, self-running demos,
and other applications where control of the mouse and keyboard is needed.
The primary purpose of Robot is to
facilitate automated testing of Java platform implementations.

3

u/[deleted] Dec 24 '22

Thank you.