if there r 10 windows open in QTP write a command to close
all 10 windows at a time ?
Answer Posted / mogal
Method1:
While Browser("creationtime:=0").Exist(0)
Browser("creationtime:=0").Close
Wend
Method 2:
Set odesc = Description.Create
odesc("micClass").Value = "Browser"
Set oBrowCO = Desktop.ChildObjects(odesc)
For i = oBrowCO.Count - 1 to 0 Step -1
Browser("CreationTime:="&i).Close
Next
method 3:
Systemutil.CloseProcessByName "Chrome.exe"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
When to use shared and local object repository?
Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?
Give me some real time point of way where exactly we can conduct audits?
How to export quicktest professional results to an .xls file?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up
What are the types of properties that quick test learns while recording?
Where is the Bitmap checkpoint information stored?
Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u
Can the user toggle between using Local OR and shared OR for the same action?
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
Generic function to search for the unique link in webtable and click on it
Explain the difference between check point and output value?
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")
What are the different types of action?