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
What is the basic concept of qtp?
What test you perform mostly? Regression or retesting in your testing process?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
What are the Disadvantages of shared object repository?
What is text/text area checkpoint?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
What are some test assets and related extensions of qtp?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
how can we do the frame work in qtp
Is the qtp course will help to create a virtual object?
how to know no.of mails in our g mail by using vb-script
How to build scripts that access data from external sources?
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
What is the purpose of loading qtp add-ins?