Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to close the new browser - when clicked on attachment
#4
Solved: 10 Years, 9 Months, 1 Week ago
Dear all,

I got the solution by for my problem

Code:
Function CloseRecentlyOpenedBrowser()

Dim oDescription
Dim BrObjectList
Dim oLatestBrIndex

Set oDescription=Description.Create
oDescription("micclass").value="Browser"
Set BrowserObjectList=Desktop.ChildObjects(oDescription)
oLatestBrIndex=BrObjectList.count-1

Browser("creationtime:="&oLatestBrIndex).close

Set oDescription=Nothing
Set BrObjectList=Nothing
End Function
I found this function in one of the sites and I made changes to it as per my requirement.

Thanks guys!
Kishore
Reply


Messages In This Thread
RE: Unable to close the new browser - when clicked on attachment - by kkishore123456 - 05-21-2010, 09:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to Close UFT 14.53 through AOM Object y.srihari 1 2,115 12-26-2019, 08:43 PM
Last Post: y.srihari
  Using UFT 14.0 on Win 10, unable to find 'Register New Browser Control' utility soujanya 2 2,953 04-23-2018, 07:24 PM
Last Post: soujanya
  UFT 12.0 is unable to identify the java Applet on Safari browser(MAC OS) Mahesh Kolla 0 2,633 05-29-2014, 12:49 PM
Last Post: Mahesh Kolla
  Close Tab Recognizes GetROProperty. WHY??? Ayesha 5 3,816 07-24-2013, 10:39 AM
Last Post: vinod123
  How to find the latest modified file in QC11 current test attachment using QTP10 shiv.cse 0 1,759 07-23-2013, 01:25 AM
Last Post: shiv.cse

Forum Jump:


Users browsing this thread: 1 Guest(s)