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 can we upload pdf files in qtp?
How many add-ins comes by default with quicktest professional?
A web page has two butons with same properties and rotating in clockwise direction. how to click on any of the button?
What is output value?
How can we redirect QTP results in to a excel sheet after the execution
pls help me with scripting,right from the beginning in QTP
In qtp what type of data tables are used , name and list out them
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
What are FAST and NORMAL modes in qtp ? Why r these modes intended for ?
what function you write to do database testing with the help of qtp?
I am executing a batchfile.In one script on one Button i have inserted a checkpoint.It is in a loop,my checkpoint is going to fail sometimes.That failed results only I have to log in a file.How it's possible...pls give the solution for this?
Is QTP a compiler or interpreter..? can you we execute a QTP Script file in a another system which does not have QTP installed..??