Is it Possible to Automate Java SWT applications using Uipath? Because I am facing issue in this applications sometimes, Uipath select the whole window. But i need to select the particular position.
Note : Java extension is enabled and I tried with uiexplorer (Default,AA,UiAutomation) options also.
Java Extension is not used for SWT applications, since the stuff is drawn on the screen using some native libraries. The only information you can obtain is generally the one exposed by AA and UiAutomation. In those cases, Computer Vision is your best alternative.
Some things to try, before moving to CV are:
Try to get to the elements going down the hierarchy, and see if you can get them, maybe there is a problem with exposing the position on the screen.
Try to use ClickText / ScreenScraping to interact with the elements on the screen.
Hi @vlad.coteanu now i am try with CV. I am try with CV screen scope and indicate the Java swt application. but it is not indicate properly. I am receive the error like Response from server is not valid.
This will help you identify more elements than just the basic selector can.
Another possible solution would be to use Anchor base activity (Activities - Anchor Base) if you can identify some stable elements next to elements that you want to interact with.
Also make sure you install the Java bridge (Studio should detect that you are trying to automate Java and suggest this automatically). LATER EDIT: not valid suggestion, because Java bridge is part of the Java extension which is not used for Jawa SWT applications (see first comment from @vlad.coteanu )
Hi @vlad.coteanu@Constantin_Dumitrascu
In Java Desktop application(Java SWT) I have One window like Chess (Square boxes). I need to select one of the square box but Uipath select the Whole window. I tried with click text, screen scrapping,Cv. but it is not work. So any other options available for select a single square box.
Hi @vlad.coteanu:
In Java Desktop application(Java Swt) . I have a window like chess(square boxes). I need to select the One of the box but now it is selecting the whole window. so any technic is available for choose a single square box.
I have no idea… I am not sure what are the limits of CV. Can you add a picture and tell us what exactly you want to do with that squares? (Extracting text, clicking them)
Hi @vlad.coteanu I am worked on My client machine. So, I am not able to share the screen shot . I need to click the square box . so for example i attach the chess image. In that window i need to choose one box. but now it is selection whole window.
Maybe some mathematic calculations can help to click the correct pixel. For example, you know how many chess squares are on a line and on a column. You can get the position on the screen, in pixels, of the whole window (GetPosition Activity).
You can use Click with offset, starting from the top left corner of the “client”.