Contributions
Re: How can I close an IE Tab during testing
The following code will take a browser that is open to Google.com and open a new tab, then nagivate to eyeontesting.com on the new tab, then will close just the google.com tab. Modify for your needs... 'Browser is open to Google.com Browser(''Google'').Page(''Google'').WebEdit(''q'').Set ''eyeontesting'' Browser(''Google'').Page(''orasi - Google Search'').WebButton(''btnG'').Click Browser(''Google'').OpenNewTab Browser(''Browser'').Page(''Page'').Sync Browser(''Browser'').Navigate ''eyeontesting.com'' CloseBrowserByTitle ''Google'', true Sub CloseBrowserByTitle(title, isregex) Set desc = Description.Create() desc(''title'').Value = title desc(''title'').RegularExpression = isregex desc(''index'').Value = ''0'' While Browser(desc).Exist(5) Browser(desc).Close Wend End Sub1.1KViews0likes0Comments