ContributionsMost RecentMost LikesSolutionsRe: How to Close the Tab in browser I have a similar issue. I need to close a tab in IE 11 that contains a PDF doc. As you know IE tabs sometimes behave differently. I tried to apply a VBScript Routine: function CloseIETabWithCaption(Caption) dim tabs, tmpTab, found, windowCaption tabs = Aliases.browser.BrowserWindow.commandbar.tabband.ChildCount for i=1 to tabs-1 Aliases.browser.BrowserWindow.commandbar.tabband.Child(i).WaitProperty Exists,true,1000 windowCaption = Aliases.browser.BrowserWindow.WndCaption found = aqObject.CompareProperty(windowCaption, cmpContains, Caption) if found then Aliases.browser.BrowserWindow.commandbar.tabband.Child(i).Close() end if next end function However sometimes the code closes a wrong tab. And if I open this PDF in more than one tab, it closes only one. Please help me with a better solution for this issue.