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 |
can we change the name of a check point? when will you start writing testcases? do you follow any methodology for writing test scripts? qtp is key word driven testing or data driven testing?
I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?
What are the types of properties that quick test learns while recording?
LINUX environment supports QTP or not? LINUX environment supports QC or not?
How to create a run time propertyfor an object?
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
How to capture text from image to word
Do you know how to connect database? Can you tell me the procedures?
What is the expert view?
How to retrieve alpha bate from the alphanumeric string with special character.
How can you capture(Read) the values from a Table?
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?