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
Get the count of files of similar types from a folder.
Does Low-level recording capture mouse movements?
Difference between action & Reusable action?
if our qtp vb Script may be Currepted then What we want do?
What VBScript operators, functions, and statements do you use in QuickTest Professional?
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
What is quick test pro? What is a quick test professional?
how to find that tools work well with your existing system?
what is the structure for the data driven framework
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
Explain the benefits of quick test pro(qtp)?
What are the advantages of qtp?
How to run a test using quicktest professional?