if there r 10 windows open in QTP write a command to close
all 10 windows at a time ?
Answer Posted / eswar
cnt = 0
Set desc = Description.Create
desc("Class Name").value = "Window"
Set s = Desktop.ChildObjects(desc)
MsgBox s.count
For i=0 to s.count-1
x = s(i).Close
cnt=cnt+1
MsgBox x
Next
MsgBox cnt
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
What is recovery scenario in qtp?
Does quicktest professional is unicode compatible?
can anyone tell me from where i can download qtp demo or crack version
In what occasion we can specify global sheet and action sheet?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
Is virtual object supported in low level recording mode?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
Mention what are the different types of recording modes in qtp? Which will be used when?
I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
If I change the property value at runtime is it effect is object repository?
Explain xml checkpoints.