How do I get the UiElement argument to update with the screen change?
I thought that the UiElement argument would update with data about the new screen if it was set as input AND output of a Use Application activity.
If the screen is same then the UiElement would work, if the screen has changed then you will face an issue with the UiElement, you have to capture the updated UiElement in the new screen.
Could you please share the screen shot of the activity (Use Application) where you are capturing the element with properties window visible, the invoke workflow in which you are passing the argument, and the activity where you are using the UiElement argument ( Properties pallete should be visible).?
This is the use application activity with the Click activity in it’s scope, which closes the window, causing the previous window in the application to be displayed:
For a Use Application/Browser container to work, It needs the Application Path like you have provided in the First Snap of Use Application via the variable (appPath).
Adding to that you are closing the application inside the container. so when the execution point reaches the next Use Application container, the application will be closed.
Try passing the appPath as well to the second-use application along with UiElement.
Let me know how it works after implementing the above.
Hi, the application is not closed, only the window of the application. When Close is clicked, the previous window is opened/reverted to.
I have tried passing the appPath with the UiElement to the next Use Application activity, but it still doesnt work. This is what the UiElement variable contains when it enters the next Use Application activity:
After the close is clicked, use find element and from that set the output to target element instead of taking it from use application.
Configure the property of second use application such that it doesn’t open new instance by selecting ifalreadyopen and pass the UiElement on to a click or type activity inside the use application.
Hope this works.
If it doesn’t please create a sample flow and attach.
First thing you should not be passing Unserializable data types (UIBrowser, UIElement)
You should be capturing the elements you want in each workflow using Use Application/Browser. Make sure you are You are selecting Close property to Never in earlier workflow.