if there r 10 windows open in QTP write a command to close
all 10 windows at a time ?

Answer Posted / kamaldeep singh

If u are using iexplore then use this function
SystemUtil.CloseProcessByName ("iexplore.exe")

For mozilla only change the name i.e iexplore.exe

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1630


Differentiate the type of test cases which can be automated and which cannot be automated?

791


when to start the automation?

1685


What are the advantages of qtp?

779


Write a script to verify font style and color of a windows object using descriptive programming

1100


How many ways we can parameterize data in quicktest professional?

770


Have you used xml check point in your project? How?

757


Mention the different actions types of qtp.

793


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1865


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1529


When should I use smart identification?

821


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

1840


What is the difference between a Function and Action in QTP?

853


What are the steps involved in the recovery scenario wizard?

795


Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

1852