How can we close all webbrowsers which are opened in out
desctop?
Answer Posted / chandrashekar reddy
there are 2 ways to close the all browsers in qtp
1) we can use while..... wend 2) we can use
description.create method
1) while Browser("index:=0").exist (1)
browser(index:=0).close
wend
2) set ab=description.create
ab("micclass").value="Browser"
set obj=Desktop.childobjects(ab)
b=obj.count
msgbox b
for i= 0 to b-1
names=obj(i).getroproperty("name")
msgbox name
obj(i).close
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is checkpoints for qtp?
How you can write contexts to text file in qtp?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
What is object spy in quicktest professional (qtp)?
I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
Did the scripts need lot of maintenance? If yes, why?
How can you identify the browser and its information using the qtp script?
Explain more about the Test Fusion Report of QTP?
What are the types of data tables in qtp?
How many number of actions possible in qtp?
What is the keyword view and expert view in qtp?
In qtp, explain what is qrs file?
what is clean sweep?