If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened.
What would be Descriptive programming for this in QTP using VB Script..???
Please send your answers.
Answer Posted / m.ganesh
Set odesc=description.Create
odesc("micclass").value="Browser"
Set a=Desktop.ChildObjects(odesc)
print a.count
For i = 0 To a.count-1
browsername= a(i).getroproperty("name")
print browsername
Next
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What are the factors on which script execution time is dependent?
What are the types of object repositories? Which one is you using?
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
What are the flaws in water fall model and how to overcome it?
How to handle Java tree in QTP?
How do you send email with attachment from outlook using qtp ?
What are table and db checkpoints?
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
How to add synchronisation points in qtp?
Explain the difference between call to action and copy action?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
How to use reporter.report event in qtp ?
What are the technologies supported by qtp?
What is test object model in quicktest professional?
What is the use of running the scripts in Hidden-mode in UFT?