There is one parent browser and 'n' number of child browsers
on desktop. Write a code to close all the child browsers but
parent browser should not be closed.
Answer / vishnu
'Create Description Object
Set oDesc = Description.Create
oDesc("micclass").Value = "Browser"
oDesc("openurl").Value = "about:Tabs"
'Loop through the collection and close each browser
If Desktop.ChildObjects(oDesc).Count > 0 Then
For X = Desktop.ChildObjects(oDesc).Count To 1 Step -1
Browser("CreationTime:="&X).Close
Next
End If
| Is This Answer Correct ? | 1 Yes | 2 No |
What is Distributed testing? How does UFT support it?
What is object state in trigger events,in recovery scenario.write a script to handle this.
plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly?
Can u call winRunner scripts from QTP?
IF I SET THE VIRTUAL OBJECT AFTER THAT MAXIMIZE THE APPLICATION THEN QTP SENT ERROR OR EXECUTE SUCCESSFULLY? WHY ?
How to identify whether a web page exists or not without using Browser(" ").Page(" ").Exist?
How does qtp recognize objects in aut?
Hi Guys, here I am posting one question. Wen u r working with Notepad. If it is not responding in the middle of TEst...what u will do.
Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me suggestions?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
what is the abbrivation of .mtr in action reposirtory?
If I change the property value at runtime is it effect is object repository?