Identical apps and window handle issue

So I have a process where the two of the apps are almost exactly identical. The difference is the database it is making the requests against.

So when the RPA process was developed the window parameter was used in the “Attach window” properties section.

The issue I noticed now was when I watched the process do its steps, the robot was doing searches in the same app two times instead of in both of them.

How come this could happen. I have the “handle” number output into a variable so I can track the both instances gets an unique handle number even if the same workflow is used.
The workflow is identical the only difference is the handle number that is passed into an argument.

What has happened?

image

Not sure what you’re doing with the handle numbers, but have you tried out the Window property of “Attach Window” activity? There you could pass a Window type variable, which you can generate for example by using the ApplicationWindow property of an earlier Attach Window. I’ve had success in using these when automating identical applications in the past.

Yes, exactly. This is what we have done.

image

image

But as stated in my post. This does not seem to work anymore and the robot is choosing the same app both times.

Hi @atomic ,

Could you maybe try performing Debug with Breakpoints and Check what is the Handle Number being passed at different Stages and also you could check the Window Element in the Immediate Panel and check what is the content that was selected.

I can see that the handle number is different both times as it should be but when it attaches the window in selects the wrong app.

Could it be because the activities inside of the attach window doesnt know what to select. I mean the “title” tag is not used in the selector. Shouldn’t the handle number be passed on to all activities inside of the attach window scope?

@atomic ,

Could you provide us with the Selectors used and what is varying when compared with both the applications ?

You should be working in modern. Try the Use Application/Browser activity.

Also, you should be outputting the application into the variable from the Open Application activity, not the Attach. Then there will be no mistakes about which one it’s attaching to.