How to get all the objects count and objects names in
webpage using QTP ?
Answer Posted / chandu
u can count the objects in a webpage by using childobjects
method
set childobjs=Browser("BrowserName").Page
("PageName").childobjects
total=childobjs.count
msgbox total
n i don't know how to get the names...sorry..if u know
plese let me know
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
What are the major/ important methods, functions in QTP we use realtime testing
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
Can we Test Welcome Screens and Process Images with QTP
What is object spy in quicktest professional?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
Why script error occur in between recording in qtp?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
What are the technologies supported by qtp?
HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.
Both static and dynamic arrays are handled by the vb script. Is it true?
How will you report the bug and explain the defect tracking sheet you handled?
When using descriptive programming?
How to open a new test using quicktest professional?