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 |
Explain about Checking Bitmaps?
what are pretesting activities
why we use environment variables
can i login a page by giving username and password and click on ok button through database parameterization.and if its yes then please write the code of that
pls tell me different type of automation frame works in QTP and which one need to select in client server application
How is the Bitmap checkpoint different from Image checkpoint?
when we right click on the desktop of any operating system we find a menu , consisting of refresh,edit,open,paste and cut etc... how to load the object and object properties of that menu in QTP
How to find the number the number of Links, Brolken Links in a webpage?
How do you capture tooltip using QTP?
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?
I have a login page like username, password and login. I have to pass the 50 user names and 50 passwords but how can i test this page with out using parameters?