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 |
What is the difference between a Function and Action in QTP?
Anybody wants to learn QTP with realtime implementations and complete framework desiging plz contact to this mail id ciraaj@gmail.com
Is it possible to change the name of a test object. I mean when we are recording the script for an object (for Ex: Username is a text field which has value "Babu",i am recording that). Then the Name of the object will become "Babu" in object repository. If i want to change "babu" as "xxxxx" .. is it possible to do? Pls help me in this .. if you didn't understand the question, pls let me know.
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
0 Answers Sapient, Satyam, TCS,
In an application you have a web table. You are provided with an external Excel sheet with the same structure as that of the web table. How will you retrieve all data from the web table and compare it with corresponding data available in the excel sheet, using QTP? How will you report the results in QTP?
Is it possible to call out to Java from QTP?
What is dynamic arrays
1)What is the Difference Between WaitTo & Sync?
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?
How you can make an action as re-usable action?