Search code examples
rpauipathuipath-robotuipath-activity

How to close the child tab using Close tab activity in UIPath


UiPath is closing the main window instead of child window. I have defined a browser variable in the attach browser activity and passed that browser variable to the Close tab activity. The main Chrome window is still getting closed.

Input browser variable from attach browser output

Output variable browser2 from attach browser

Also attached is the project xaml file https://drive.google.com/drive/folders/1ykpHvFEc7DkCI7enUAOgExWBN6KHKQo-?usp=sharing


Solution

  • In my opinion, It would be alot more easier, if you use send hotkey activity of UI path with "CTRL + w" to close the active tab.

    enter image description here