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
How can get count of list box?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
How to carry out bit map check points in QTP
Can U Explain about QTP tool from older version to latest version also its differences?
Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter
How do you delete unwanted results in qtp?
When should I use smart identification?
What is the purpose of loading qtp add-ins?
what is the difference between development and testing
What is qtpro?
How does qtp recognize objects in aut?
how to idetfy which test cases are automated?who will deside that plz tell me
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that