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



How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the su..

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

How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the su..

Answer / nanda

is that screen is Browser or Window?

If it is Browser..

If Browser("Creationtime:=1").Exist(10)Then
g = Browser("Creationtime:=1").GetROProperty("name")
msgbox g
End If

If possible can send that screenshot of that screen to:

nanda.dreddy@gmail.com

Is This Answer Correct ?    1 Yes 0 No

How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the su..

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

Post New Answer

More QTP Interview Questions

1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

0 Answers  


what is option explicit?

5 Answers  


In a yahoo web Application there are 65 links.one day it will opens 50 links and another day it will open 55 links.In this scenerio write Descriptive programing for Automation?....Pls write the code for this scenerio.

1 Answers   College School Exams Tests, UHG,


Suppose there are 100 links in a web page and the number of links will be changing dynamically from time to time. I need code such that every time i had to click on the last link of the web page.

4 Answers   Virtusa,


Out of 3 recording modes. 1.Standard 2.Analog 3.Low-level, which one is commonly used. As per my knowledge, Analog is used for Graphs , barcoding or DIgital signatures.

0 Answers  






How to return a value from a fn, if it has more than one value how to return

3 Answers   Verizon,


what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

0 Answers   EpuraTech,


what is meant by Utility object and utility functions?can u all pls explain these clearly.

1 Answers  


How u will do versioning in QTP?

0 Answers   NIIT,


How does QTP identify an object?

0 Answers  


What is fragmentation and paging?

0 Answers  


Where we can use the analog mode and where we can use the low – level mode?

0 Answers  


Categories