Automation uses the underlying UI technology to integrate with applications. In the case of web applications, automation uses the html to understand what is in the page.
As I mentioned, webswing draws onto a canvas (a drawing board), there's nothing in the html about controls because the controls you see were drawn. The only thing we know is that it's a canvas. The only way to automate such applications is by using surface automation.

------------------------------
Joba Diniz
Product Manager
IBM
------------------------------
Original Message:
Sent: Mon July 12, 2021 06:06 PM
From: Ahmed Shaheen
Subject: How to Automate Java Application use Webswing
Thanks , NIGEL CROWTHER and Joba Diniz ,but running Java Swing app directly on the PC rather than within WebSwing and using OCR are not accepted to use with the application that we try to automate .
------------------------------
[ahmed] [shaheen]
[System developer]
[valleysoft-eg]
[Cairo] [Egypt]
[+20-01015699307]
------------------------------