Hey,
I'm having trouble spying Java elements of an application.
The first problem I encountered was that the application is being launched via VApplauncher (exe file). This way I can't get the application to open (tried the Windows, Java en Browser based application modes). All failed. This because it's a generic application that opens the wanted applications for me. In the file-path you see a command after the .exe. (.exe /Launh "application"). I can't get this to work in the application modeler.
But I noticed that to open the application it first opens IE, where you have to select the wright option to open the Java application. Therefore I made an object (browser based) to open IE en go to this first page and click on the option I need. After clicking on this option Java is opened and a log in screen appears. I tried two things to enter the login data:
1. I tried to use the browsed based object (which I created to open IE and click the option). In this object I can spy the elements of the log in screen, but not the window/application itself. I tried spying the username element (field to fill in the username) and directly after that I tried to highlight it. I got an error message it couldn't find any matching java elements. I tried spying elements using all the available spying methods, but they all can't find the window or the elements.
2. The other option I tried was creating a separate object and attach the log in screen to this object. I can't attach it to the object. I fill in the Windows screen name exactly as it is and use a * for any possible spaces/invisible tokens (also tried the " before and after the name). I look for the process by right clicking in the task managers screen on the application of the log in screen. This is always jp2launcher,exe. I use this in the application modeler. After finishing the steps in the application modeler I keep getting the message it can't attach the application. For this I also tried the Windows, Java en Browser based application modes with the same result.
To make it a bit more complicated I also get a security warning (insecure website) just before the log in screen appears (can't spy/identify this either). I ignored this for now, because we're first making the happy path. I think this has a same (comparable) solution.
The OS is a 32 bit system (Windows 7 Enterprise).
I use Java version 8.
Java bridge is enabled.
Hope someone can help me.
For more information/questions, just post or send me a message.
Thanks in advance.
Remko