If there are 10 notepads opened on desktop. how can we
close a particular 2nd notepad using script

Answer Posted / girishkumar

CreationTime is best for it

While Browser("CreationTime:=0").Exist
Browser("CreationTime:=0").Close
Wend




http://motevich.blogspot.in/2008/06/qtp-descriptive-programming-browsers.html

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default object synchronization timeout in qtp?

634


How to test background color and dynamic images during run time can you put the check point for moving objects?

1438


I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

1708


What is qtpro? What is quick test pro?

552


In what occasion we can specify global sheet and action sheet?

558






If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

575


how u will evaluate the tool for test automation?

1359


Key word driven framework

1682


Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.

1757


assume i have few url link how will i dynamically call then using descriptive programming?

1590


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

1947


What are the various types of Actions in UFT?

581


What is the difference between the keyword view and expert view?

521


How many ways is to parameterize the value?

610


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

606