I have an automation that works on two embedded terminals at the same time.
I need to take screenshots in case of error, and through some posts I had found and implemented the attach window (in UiPath executor) and then the activate activity.
Now the problem what is it? that the robot works with two terminal sessions at the same time, same connection string, what changes are the login credentials.
So, in no way I can distinguish one mask from another, while I would need it to come in foreground always and only 1 of the two embedded sessions, do you have any suggestions on how I can do that?
Why you need to activate one window for getting screenshot right?
If yes and if the text from the terminal is enough means just use get text of terminal activity and the output variable will contains the text in the same format in the terminal window you can use the whole string or you can manipulate and get only the error line.
I think sessions would be different right ?
Like Session A, Session B like that, so you can connect session accordingly using the terminal session when u need interact with any systems
What distinguishes them is the connection string, but in my case I have two sessions simultaneously hooked to the same instance, so the connection field is the same.
I would have to figure out how to distinguish the two
Have you tried terminal session to connect one terminal sesssion and saved the terminal session in a variable (let’s say terminalA) and did the same for other terminal ?