How can we close all webbrowsers which are opened in out
desktop?
Answer Posted / pramod k sirotia
Please Use Following Method:
SystemUtil.CloseProcessByName
By this method Not only webbrowser even any porcess can be
close.
For ex:
Writ this code in QTP Editor
' Below 3 statement will invoke 3 web Browsers
SystemUtil.Run "iexplore.exe"
SystemUtil.Run "iexplore.exe"
SystemUtil.Run "iexplore.exe"
'Below Statement will Close all 3 opened web Browser
SystemUtil.CloseProcessByName "iexplore.exe"
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins
What is the new version of qtp which is recently released in the market?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
What are the benefits of quick test pro(qtp)?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
There is an excel file of 1 to 100 sheets how you will iterate through it?
How to find a window is minimized or not
what is profile tool?
Define Error Pane of UFT?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
How do we analyze the checkpoint results?
Name the properties you would use for identifying a browser and page when using descriptive programming?
Is it possible to call win runner script in qtp?