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
desribe a situation where u faced a stressful situation and how did u cope with it
What is difference in global and action sheet in qtp?
How can I change object description or check point values in qtp?
What are the types of object repositories? Which one is you are using?
Tell me about your project? please help me how to tell about insurance project
How will you test a stapler?
Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak
Explain runtime dynamic settings?
am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)
Discuss quicktest professional environment?
Explain the difference between data driven testing and parameterization ?
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?
How many types of recording facility are available in quicktest professional?