if there r 10 windows open in QTP write a command to close
all 10 windows at a time ?
Answer Posted / venkat
3 menthods are these to close browsers
1) SystemUtil.CloseProcessByName "iexplorer.exe"
2) Do While Browser("creationtime:=0").Exist
Browser("creationtime:=0").Close
Loop
3)Set objWMIService =GetObject"winmgmts:\\.\root\cimv2")
Set colProcess = objWMIService.ExecQuery("SELECT * FROM
Win32_Process")
For Each objProcess In colProcess
If UCase(objProcess.Name) = "IEXPLORE.EXE"
objProcess.Terminate()
End If
Next
Regards,
Venkat
9986635974
bangalore
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the flaws in water fall model and how to overcome it?
How to execute a winrunner script in quicktest professional (qtp)?
How to run a test using quicktest professional (qtp)?
Are Shared ORs read-only?
Explain the concept of how quicktest professional identifies object?
What is the purpose of loading qtp add-ins?
regular expression in qtp standar check point for months from accepting months from january to december only
What is system testing and what are the different types of tests you perform in system testing?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
Object repositories types, which and when to use?
Explain the differences between table and db checkpoints?
How QTP identify the system time that's changes every seconds?
what testplan contents and what test strategy contents,what is the diff b/w them
How to get Traceability matrix from TD?
How you create new action in qtp?