If there are 10 notepads opened on desktop. how can we
close a particular 2nd notepad using script
Answers were Sorted based on User's Feedback
Hi Radha,
If you want to close the second Notepad, you can use the
below script:
Window("Notepad_2").Close
or by using Descriptive Programming you can use:
Window("text:=Untitled - Notepad","Location:=1").close
Here the Location value keeps changing.
Pls try it...
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / rm
The particular NOTEPAD can be activated using the title
text.
E.g: Window("text:=3-17 defects - Notepad").Activate
| Is This Answer Correct ? | 1 Yes | 2 No |
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 |
How does QTP identifies the object in the application Mainly objectives are three type's OF PROPERTIES namely
Once we get the Test Result from QTP.,I Have to convert into Excel file format..Is it possible..Can any gudie me regarding this... For Example : Total Test Case is : XXXXX Test Case passed : XXX Test Case Failed : XXX -------- Total XXXXXX ---------
How to execute a winrunner script in quicktest professional (qtp)?
What are the parameters provided by QTP?
Hi Samrat, Thank u very much, what u said it is right.
what is mean by output parameters? I need full description with example. tell me any one please
I want to open a GOOGLE page without recording a test in QTP.Can any one answer me?
How to get line numbers in your editor in expert view?
What is the file extension of the code file in qtp?
How many function you use in your application?
How do you create new test sets in td?
why use Description programming? what is advantages and disadvantage of this methods?