How should i get name of the screen?
Ex:There is a "submit" button.If i clicked on the submit
button it opens a screen. I want that screen name.How can i
get that screen name
I dont have any property regarding that screen.
If suppose we cliked on the screen , Then QTP captures the
screen properties
then i can get the screen name by using GETROPROPERTY
But i want the screen name without clicking the screen.
("I am using the "settoproperty" for Second screen by using
fist screen properties")
Please tell me anyone
Answers were Sorted based on User's Feedback
Answer / art
U can use Object Spy feature in QTP, to capture the
mandatory and assistive ppty of any object. In ur case, u
want the screen name;
1. Perform the action, by clicking the submit button and
the screen will open.
2. Now, click the Object Spy feature and a hand like tool
will get displayed.
3.Take the tool, to the corresponding screen and click on
it.
4. U will be able to see all the ppty and values.
Hope this helps. Correct me if I am wrong.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / guest
Hello Art...
I got your answer... Your answer is good but it is not
correct for this question
Question is... Click on Submit Button... One window or
dialogbox will open... we should not active that window...
We have to get the Window/dialogbox name through scripting..
If we use Object spy it will provide you every thing but in
interviews they don't ask in that manner.
I try to give the answer here...
First of all Click on Submit button... then get the no. of
windows on desktop
Code is here
function doit()
dim wins,shl,all_wins
set wins=createobject("scripting.dictionary")
set shl=createobject("shell.application")
set all_wins=wins.windows
for each win in all_wins
wins.add win.hwnd,win
Next
End function
set get_name=doit()
for each oie in get_name.items
set ltst=oie.getroproperty("Creation Time")
' msgbox ltst
set ltst_name=oie.getroproperty("name")
print ltst&" Recent Window opened on desktop&"& ltst_name
Next
msgbox ltst&" Recent Window opened on desktop&"& ltst_name
Is This Answer Correct ? | 0 Yes | 0 No |
What is a Patch in QTP?
Explain different type of event trigger option.
Could some one help me the difference between GetTOProperty and SetTOProperty and when we will use these properties. and what is meant by SetToProperties..
what is option explicit? what is the use of it?
Local Obj Repository and SOR are editable know, y we have to edit those.. i mean in which situation we need to edit those and how to do..? pls help me..
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ENGINEER " Please send me the answer
what is keyword driven testing
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
How many ways we can parameterize data in QTP ?
Diff between WEB APPLICATION AND CLIENT-SERVER APPLICATION?
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji