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
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
Give the syntax to load function at run time.
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
What is test object model in quicktest professional?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
In qtp is it possible to check broken links of a page?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
How can I change object description or check point values in qtp?
How many types of recording modes in qtp?
how can we compare descriptive programing with a regular expression
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
Discuss the QTP Environment?
How to export quicktest professional results to an .xls file?