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 software automation specialist enter steps in the Expert View?
what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
How to associate shared object repository to test in qtp?
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example
Which functionalities of QTP used in banking project?
Get the count of files of similar types from a folder.
Suppose I want fail that check point? How can you do that?
How can we conduct U-I Testing by using QTP??????
How to execute a winrunner script in quicktest professional?
Hello friends..... On which areas of an application we can not test with QTP
What are the challenges you faced during you entire life automation ?
What are the Disadvantages of shared object repository?
How we can import data from database?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?