I’ve been working with Uipath for a few month, but I have a doubt at the moment of when I should use the activities that apparently works or do the same.
I already know that there is some kind of Uipath directory that “explains” the purpose of each activity, but i’m still having some doubts, again, at when I should use one or the other.
Get active Window vs Show Window vs Attach Window
From my understanding, each one works in a similar way, but the only difference i’m seeing is that the first one (Get active Window) have to possibility to define the window variable of a specific window and that it comes with a Do container).
Show Window, only allow us to bring to the front the specific Window declared on a Window variable.
For the Attach Window activity, what it does is clear to me, but my only question would be: It’s a good idea to nest inside the Get active Window an Attach window activity and then use this new container and do whatever we need with another activity?
In addition of what I’m describing, Which other benefits exist when we are using Show Window instead of Get active Window activity? We should restrain of using Get active Window and Why we should?
hI folk,
You have already gone very deeper but still i can some inputs on the same. Hope it will help you.
Attach window- We need selector or Window variable to attach window. we can perform operations under this.
Show Window- It activates the window defined under Window variable. If we perform “Get Active Window” after this, we will getting the same window which we just used in “Show Window”
Get Active Window- It gives us active window as an output variable and we can perform actions under this activity.
And your idea of →
It’s a good idea to nest inside the Get active Window an Attach window activity and then use this new container and do whatever we need with another activity ← is a real scenario based observation.
but keep in mind that “Get Active Window” will only be working correctly only if we had performed some actions on same window just before using “Get Active Window”.
Please let me know if i was able to help you out or not.
From your explanation, know I can see that these activities basically have a better use according to the scenario when we are beginning to create the bots. Something like:
Get active Window: will help us to define in an easy way the Window variable and if we do something else inside the container, it will “reinforce” or create a better Window variable/selector. (Perhaps, the attach Window will create a better selector in this case, I guess, but not the Window variable)
Once this Window variable is defined, we can use then the Attach Window and Show Window each time we need (in a late automation state) to retrieve the Window and do something inside the same.
Again thank you for your reply and feel free to correct me if I’m wrong.