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 |
Can we use Virtual Objects in Discriptive Programming?
Generic function to search for the unique link in webtable and click on it
What are the different recording modes and how do they work?
What are the differences between table and db checkpoints?
Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.
Will QTP gets installed on virtual PC.What is the maintenance number to be given
how will u do database testing in qtp? how will u do the same with descriptive programming?
What are the different types of Database checkpoints in QTP? when they are used?
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
Basically why we need testing?
Where we can use the synchronization?
Explain the qtp test phases.