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
How to record a qtp script ?
What is the descriptive programming?
How many types of recording modes are there?
Hoe can we do retesting using functions please give the code for it using login page
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
If I give some thousand tests to execute in two days what do you do?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
can u please explain what is the exact difference between qtp8.2 and 9.0
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
How smart identification works in qtp ?
Hi How to retrieve data from web element line by line?
what is actually contain test report? can anybody post the test report
What are the different attribute used with regular expression?
What is environment variable in qtp and why to use it?
Are Shared ORs read-only?