write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / milan das
Set objbrowser=description.Create
objbrowser("micClass").value="Browser"
Set objbrwcnt=Desktop.ChildObjects(objbrowser)
msgbox objbrwcnt.count
For i=0 to objbrwcnt.count -1
If objbrwcnt(i).GetRoProperty("name")<>"xyz" Then
objbrwcnt(i).close
End If
Next
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Hi ,Can any one pleas explain how to test splash objects using QTP?
What are the different types of recording modes?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter
What phases are involved in testing an application in qtp?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
How to use the object spy in quicktest professional (qtp) 8.0 version?
How will you report the bug and explain the defect tracking sheet you handled?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
What are the properties you would use for identifying a browser and page when using descriptive programming?
Explain the new feature of UFT regarding the export of test results?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
Have you faced any problems with object repository?
Explain sub procedure of vbscript.
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?