Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Get the count of files of similar types from a folder.

1420


Does Low-level recording capture mouse movements?

986


Difference between action & Reusable action?

1017


if our qtp vb Script may be Currepted then What we want do?

1859


What VBScript operators, functions, and statements do you use in QuickTest Professional?

2602


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.

2251


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

1825


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.

2050


What is quick test pro? What is a quick test professional?

1013


how to find that tools work well with your existing system?

1809


what is the structure for the data driven framework

1946


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

2248


Explain the benefits of quick test pro(qtp)?

939


What are the advantages of qtp?

961


How to run a test using quicktest professional?

911