OK… I’ve tried EVERYTHING to attempt to close the 2nd tab…
Using Send Hotkey - Ctrl-F4
Using Send Hotkey - Alt-F & then c
Using Click (Right-click) and then 3 down hotkeys and 1 enter hotkey
Nothing works - it always closes the 1st tab instead of 2nd.
I even tried using Mouse-click on tab’s X… sometimes it works. But then it fails (since it seems to pay attention to the tab’s address instead of the #2 tab).
Any solutions out there to easily close just the 2nd of 2 tabs. Or maybe closing all tabs but the first tab? (yes… I tried using right-click and close all but this tab (both with recording mouse and keystrokes… still no luck)
See attached.
First image is the two tabs open at same time. The 2nd tab is a PDF export of info from first tab…
You can use “Ctrl+2” to go to the second tab and then you can use “Close tab” activity which will always close the current active tab from the browser.
Actually… that’s my problem. Tab 2 IS my current activated tab. I even click on it again before trying to close it JUST SO I’M SURE that it’s the active tab. It’s still closes #1. But I will try the Ctrl+2. (more to come)… THANKS for the reply.
Hi,
This is what I do to deal with multiple site windows/tabs…
Each time a new window or tab comes up I use “Attach Window” to store it into a Window Variable then I can use “Close Window” to close each tab. However, you might get the popup that asks if you want to close current tab or all tabs; just add another Click to choose Current Tab.
You can also put the selector in the Close Window instead of using the window variable.
WONDERFUL… Almost there. But how do I store the “Attached Window” into a Window Variable? Every place I try to store it, it comes up with an exception. Thanx!
lol, yeah the “Do you want to close all tabs or the current tab?” popup is a feature of the browser. The Close Window activity is basically simulating you closing the window so it will ask that question. A Click activity should help bypass that.
Everything you did looks good from my perspective. Hope that works out for you.
Thanks.
You could also try “Attach browser” instead of Attach Window and create a browser variable in the same way, then in the Close tab activity use that variable. I just don’t use that method as much is all. Close tab will probably not prompt you.
Yes, like @vvaidya pointed out, Ctrl+W is shortcut for Close tab