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
Explain the concept of how quicktest professional identifies object?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
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 are the ordinal identifiers in web page?
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
how to convert 100 into hundred repees only and viceversa
Can we record using all the modes in a single script? Explanation with example is appreciated
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
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.
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
QTP script is not working on other's machine..
Explain more about the Test Fusion Report of QTP?
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
Have you faced any problems with object repository?