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 |
suppose by navigation i went from 1st page to 5th page write a script for coming from any page to the 1st page abd by executing where the page may be . it will come to 1st page give the code using gmail. give me mail id so that i can under this answer with out any doubt
I want to check in the data table(Globalsheet) column exist or not through script .If column not exist only proceeded to next step Pls tell me how to proceeded?
Explain advantages and disadvantages of ddf?
If you are testing a web application then what will you test in that application?
write vbscript in qtp tool for senario, in the given sheet add each number in each row and each colunm and show result
What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?
Hi, When I click on a hyperlink a secondary pop-window will open. In that pop-up window there will be 'N' number of records arranged in with paging option in datagrid table. Each rows contains two columns, one is text and the other is a radio button. I will pass the first column value and based in it the tool have to select the corresponding radio button in that row. Please someone help me how to handle this as am new to QTP.
What is the difference between local and shared object repository in qtp?
What is the script for database check point, bitmapchek point, regular expression ?
Why you are Using Descriptive programming instead of Object Repository?
Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?