I have developed a code where Oracle java forms are used and the selector is something like this …“<wnd app=jp2launcher.exe” . Now when I run this code on some other machine… it does not recognize the selector. On checking the issue I found the selector as “<wnd app=java.exe” over there.
I have already build my code and this selector is used in about 100 activities in my code, so I dont want to make changes manually.
Hi
Welcome back to UiPath community
I didn’t get this buddy
What was the difference been found
And also ensure that Java extension is installed in that machine
This is what I have done, I googled if I can use regex in selectors, and I found a way to do it,
you add the app name as a regex formula and then you add this tag matching:app=‘regex’
<wnd app='(jp2launcher.exe|java.exe)' matching:app='regex' cls='SunAwtFrame' title='Oracle Fusion Middleware Forms Services' />
In theory it catches both jp2launcher and java, I did not test it yet, on the other machine, but in theory it should work.
(our robot machine uses “java”, on my machine its “jp2launcher”)
[edit] I just realized, I could also change the regular expression to something like