Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to close new tab
#3
Not Solved
Hi,
I am still looking for the solution. Please run this code and you will find the same bug which I am facing.Please anybody help me out asap.

Code:
systemutil.Run "iexplore.exe","yahoo.com"
Browser("title:=.*").Sync
Browser("title:=Yahoo! India").OpenNewTab
Browser("title:=Yahoo! India").OpenNewTab
Browser("title:=Yahoo! India").OpenNewTab
Browser("title:=Yahoo! India").OpenNewTab

sTitle="Yahoo! India"
Set oDesc = Description.Create
oDesc( "micclass" ).Value = "Browser"
oDesc( "application version" ).Value = "internet explorer.*"

Set vIE= Desktop.ChildObjects(oDesc)
vIECount=vIE.count
z=vIECount
For m=1To vIECount
z=z-1
    If Browser("creationtime:="&z).Exist(1) Then
        newTitle=Browser("creationtime:="&z).GetROProperty("title")
        If Not (sTitle = newTitle) Then
            Browser("creationtime:="&z).highlight
            Browser("creationtime:="&z).Close
        End If
  
    End If


Next
Reply


Messages In This Thread
Unable to close new tab - by pradeep singh - 03-01-2013, 11:44 AM
RE: Unable to close new tab - by pradeep singh - 03-04-2013, 05:55 PM
RE: Unable to close new tab - by pradeep singh - 03-05-2013, 09:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximize and Close a Browser mv8167 4 16,161 03-26-2023, 03:55 PM
Last Post: Mike B
  Close popup ad windows dustwynn 1 2,775 10-25-2016, 05:57 PM
Last Post: Ankur
  [UFT] Close opened folder robertosalemi 1 3,181 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Close browser code not working akilamurugesh 1 4,489 08-26-2014, 03:21 PM
Last Post: vinod123
  Close on Exit Issue in QTP 11.0 EGBELL 1 3,084 02-02-2014, 03:39 PM
Last Post: EGBELL

Forum Jump:


Users browsing this thread: 1 Guest(s)