write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / pravati
set obj=Description.create()
obj("micclass").value="Browser"
set brsrobj=Desktop.childobjects(obj)
msgbox brsrobj.count
for i=0 to brsrobj.count -1
x=Browser("micclass:=Browser","creationTime:=&i-1").Getroproperty("name")
if instr(x,"xyz')=0 Then
Browser("micclass:=Browser","creationTime:=&i-1").close
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
Plz Explain AUTOMATION REFERENCE MODEL?
When to use shared and local object repository?
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
How can you exit from an action?
What is keyword view?
What is the latest version of qtp?
What is Associate Repository in QTP 9.2 ?
what are the mandatory properties for a tex boxc (scenario?)
Explain how you can replace string in qtp?
What is QTP testing process?
What is QTP and the use of QTP in TD?
How to export quicktest professional (qtp) results to an .xls file?
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.
How to customize qtp?