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
Answer Posted / 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 View All Answers
Can anybody post some real time scenario in qtp? please its very urgent.
Is it possible to use two instances of UFT on the same machine? If not why?
What are the general steps involved in the data driven framework?
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
How may types of defects identify application or your currently working application?pls give me answer..
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
Explain types of descriptive programming?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
What are the ways you can synchronize?
What is Distributed testing? How does UFT support it?
How to find array size in qtp?
Explain features of the latest version of qtp/ uft 12.1?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
what is object and child object.. explain ..if possible give some example for better understanding ..