2

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

Community
  • 1
  • 1
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
  • I cannot open your project. But that solution via hotkey should be a proper solution I would also recommend you. – kwoxer May 26 '20 at 09:06
  • @kwoxer - why can't she click the close button on the child window. I agree sending the hot key may help but clicking the close buton should work. Atleast that's what has been suggested int he RFE frameworks assignment – Atul Chaudhary May 27 '20 at 07:37

1 Answers1

2

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

NTP
  • 4,338
  • 3
  • 16
  • 24