I’m automating application (our ERP system) that is running on a Citrix server. I have a Citrix receiver 4.9software installed on the Windows Server 2016 server, which also has UiRobot.exe and it is running my xaml. I’m using the bat file to start the job at a certain time.
So this task goes like this:
- Open the Firefox browser
- Go to specified URL and click the link which starts the Citrix app via Citrix Receiver
- Wait for the login window, enter the username and password and login to ERP system
- Run a task in this ERP system
- Log off
This whole task works mainly like a toilet of a train except the phase 3. I am using the Attach Window function in it. This attach window has a selector which has a value:
wnd app=‘wfica32.exe’ cls=‘Transparent Windows Client’ title=‘Sisäänkirjautuminen system1 - \Remote’ /
About 2 of 3 Attach Window function runs are failing. The robot is just waiting for the window to appear but I can see with my own eyes that this window is on the screen and I can see that this title is ok. There is also only one wfica32.exe running on the machine.
This “sisäänkirjautuminen” is a finnish word and it means “login”. I have also tried the selector with the wildcard marks if the letter ä could be the problem but it doesn’t change the situation. Like this:
wnd app=‘wfica32.exe’ cls=‘Transparent Windows Client’ title=‘Si*kirjautuminen system1 - \Remote’ /
I have tried this also with the UIExplorer and I can repeat this problem. If I open this login window with Citrix Receiver and go to UiExplorer, then I’ll make this selector and test it, sometimes the UiExplorer says that it can’t find the login window with the selector but sometimes it can find it even if the window is on the screen all the time and I’ll just test it with UiExplorer many times. Is there some kind of bug with these selectors?
How could I do this without the Attach Window function if it doesn’t work with Citrix Receiver?