How to Close all browsers in reverse order.
Answers were Sorted based on User's Feedback
Answer / suresh
Set oBrowser = Description.Create
oBrowser("micclass").value="Browser"
Set oAllObjects = Desktop.ChildObjects(oBrowser)
msgbox oAllObjects.count
For i = 0 to oAllObjects.count-1
Browser("CreationTime:=" & i).close
Next
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / suresh
Set oBrowser = Description.Create
oBrowser("micclass").value="Browser"
Set oAllObjects = Desktop.ChildObjects(oBrowser)
msgbox oAllObjects.count
For i = oAllObjects.count-1 to 0
Browser("CreationTime:=" & i).close
'msgbox (Browser("CreationTime:=" & i).GetROProperty
("Title"))
Next
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sri
When each browser is opened using QTP, each browser would
have a creation time property associated with it. You can
take this property to close browsers in which ever order
you need.
| Is This Answer Correct ? | 2 Yes | 5 No |
Write script to fetch the data from global sheet where row number is 3 and parameter is "text"
3 Answers Accenture, Thomson Reuters,
1)what is the quality process in QTP? 2)how to add the .tsr file in qtp through scripting?
How will you compare keyword and expert view?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
what is Compile Module in QTP? what exactly it contains Functions or Actions?
How do we run the scripts in QTP ?? what are the three options....
How to import the Test Results in QTP to an Excel sheet
Which scripting language used by quicktest professional?
what is exact difference between smoke and sanity testing?
How to identify whether a web page exists or not without using Browser(" ").Page(" ").Exist?
what is the frame work in J-meter?
how can i call function (which has link with excell sheet at a remote location) within another function