Use Application/Browser activity will give output of type UiElement which i have saved in a variable.
Requirement -I want to close the same browser outside the scope of Use Application.
Tried Soln - I’m using Close Tab activity and passing the output ui element of Use Application in Input of close activity but giving an Error.
Any suggestions ?
There is no activity as Close Application in Modern
If you click on filter , you will have show classic click on that and search for close Application
Regards
Sudharsan
Hi,
FYI, another approach.
Close window of application
uie.GetTopLevelWindow.Close()
OR
Close browser
uie.GetBrowser.Close()
note: uie is from output property of Use Application/Browser
Regards,
Does Modern and Classic both works together ?
Hi @prerna.gupta,
Another alternative would be the following.
Use the Same URL and manipulate the Close and Open properties in Use Application/Browser.
The third block will only close the first Browser Window, the second block will stay open, the third block is going to look for the first window and close it always.
If @Yoichi’s solution works for you do use that as it is not dependent on URL rather the element itself, more robust the using URL.
Here out_SNBrowser is the output of Use Application of ui element type
Its not working. In Close Application activity i used ui element output of use Application, its giving error
Hi,
Is out_SNBrowser is UiElement type? It seems UiPath.Core.Browser type. Can you check its type at variables panel?
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.