How will u find that how many List boxes( and check boxes)
are present in one particular window
Answer Posted / kalyan
HI Every bodey,---
Any object present in the page is known as childobject.
Ex:-Link,Web Edit,Check Box,Web button,List box,etc...
If u want to coun the Listboxes (or)Check boxes you can
write below script.
---------CODE----------
set ochbox=description.create
ochbox("micclass").value="checkbox"
set chobj=Browser().Page().childobjects(ochbox)
n=chobj.count
msgbox n '(here you can get how many check boxes there in a
page)
for i=o to n-1
val1=chobj(i).getroproperty("innertext","name")
msgbox val1
next
-----------End---------
In the same way we can find Links,Webbuttons,Listboxes,etc..
Any doubts----mail to----mskalyan.smile@gmail.com
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the differences between qtp and winrunner?
Explain the qtp test phases.
Discuss the QTP Environment?
In qtp is it possible to check broken links of a page?
wht type of User defined functions or Java Releated functions do we write in VB scripting
How you can make an action as re-usable action?
Can we run multiple QTP scripts one after the other without manual intervention? How?
how to test Web application using QTP software
terminal services client
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
how to write xml output check point bu useing descriptive programing .means without useing output check point
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
What is QTP and the use of QTP in TD?
give me an example where u used good judgement and logic in solving a problem
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?