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 |
Hi, one script having 10 Actions,but i want to execute only 3rd action and 7th action? how to execute selected actions? throgh script and through navigation?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
what is the difference between ClassName and class in QTP?
Which line will be executed 1-B(DP).P(OR.link(DP) 2-B(OR).P(Or).Link(DP)
Can objects recognised without repository?
QTP is used better in which type of application Web based application or desktop application
How can we merge two repositories? Can we merge two differnt rep. I mean 1is peraction and other shared
4 Answers Tavant Technologies,
I register user defined function in one test, I tried to call that function into other test. But that function not works in other test please give the direction for that.
please clarify the question ................. i know how to open the notepad file ? but i don't know how to enter the data into opened notepad ? Ex: set a=createobject("wscript.shell") a.run "Notepad.exe" please give the replay. my mail id is raju.ippali@gmial.com, 9823257761
Hi..friends can anybody write the script for this question... Am having some 20 nos of links in a web application, i want to click some 5,13 & 17th links. So please....can anybody give the answer....??? -->Hani<--
How can i check all the button that are enabled in a widnows based application ? What script should i write for this ?
How 2check the color of the text in the textfield . say suppose the text entered in the textfield object is appearing in red. so i want to check whether the text is in red color or not. It could be great help for me if any one solve's my issue. plz...help