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 |
what is regular expression how will you implement it?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
How to connect to data base?
What is post recovery scenario?
what is the difference between ClassName and class in QTP?
HOw to add the recovery file at runtime to the test file .
Hi! Using Descriptive Programming How do we get Parent object for an object. Say, i want to get a parent object for a "Link" in a web page. thanks
explain structured testing? plz guys with exp. do answer
i have an array CAPGEMINI .....Here i need to check whether G is there or not ..how to do that and friends i have one big doubt that is whether it is array or string ,how we come to know that and where we consider that it's array ,where we consider that it's an string because when i want to find the length i have big doubt whether we need to use len function or ubound ... ans me for this TWO Questions any one please
How to see the screens after running test in QTP?
hi i want write code for "test engineer" in this i want write reverse how ca plz let me know through script
I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all