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
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
How do you know the location Id of an object if you know its index id?
What is QTP scenario.
what is vmodel?advantages and disadvantages of vmodel?
What are the ways you can synchronize?
What is the Difference between copy to action and call to action?
How to use Environment parameterization? Explain with an example.
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
What is checkpoints for quicktest professional (qtp)?
Analyzing the checpoint results?
what you mean by artifact,milestone...
How to handle the exceptions using the recovery scenario manager in qtp?
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
Explain the benefits of quick test pro(qtp)?