Is there a way to close a specific Google Chrome tab?
brianb
![]()
- Joined: Jun 14, 2012
- Posts: 5
I have a program that will launch content to the web when you click a button. However, after the content opens in Chrome, there's no way from within Winautomation to close a specific tab. I tried using the "Close Window" action and specifying the Window title. However, it wants to close the entire Chrome program instead of just the tab itself. Is there any way to close a specific Google Chrome tab?
cheby
![]()
- Joined: Jun 28, 2012
- Posts: 6
If tabs open in the same order every time, you can send a mouse click
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2330
try the combination of {Control}({W}) while focused on that tab, that should do the trick for you!

Samantha
MikeTheWatchGuy
![]()
- Joined: Oct 8, 2011
- Posts: 24
I am having some similar trouble, but with SWITCHING tabs. Chrome has a shortcut CTRL + Number where number is the number of the tab you want to switch to. To switch to the second tab, it would be Control + 2. I can't get Winautomation to do this at all. I even clicked in the window to make absolutely sure the current window was focused.
Control A works fine and selects the entire current Chrome window, but Control 2 does not move to the 2nd, already opened, tab.
This is challenging for me because I cannot use image recognition as it's being coded for another machine, not mine. So I don't have a good idea of their resolution, etc. It's trivial to do by hand, but has a horrible time automating.
You could close that second window by delecting it and typing control W .
All programs I've run across with tabs seem to use Control W to close the currently selected tab. Very handy.
Anyway, back to my problem... anyone with the ability to send a set of keys to Chrome to seitch to the next over tab would be greatly appreciated.
erikc76
![]()
- Joined: Jul 9, 2012
- Posts: 27
If you have 3 tabs then CTRL+1 should be first tab, CTRL+2 should be second tab, CTRL+3 should be third tab.
If you want to go to the NEXT tab, do CTRL+PgDwn
If you want to go to the PREVIOUS tab, do CTRL+PgUp