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 to build scripts that access data from external sources?
What is descriptive Programming in qtp.
what is memory leakage?
15 Answers ITC Infotech, Panamax, TIT,
what is ODC and GDC?
WHO TAKE DECISION TO RELEASE THE BUILD
how to write scripts in QTP?
In QTP how to interact tool and application build?
How can we automate Capthca on registration or any contest forms ? Is it possile to Automate Webpages with Falsh using QTP..?
Without using gui map editor we can recognize the application in winrunner ?
If I want to run more than one test (With different functionality) with in one script, then what i do? plz. explain with any example.
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
what are the attributes of QTP?