How can i count the list box elements in QTP ?using script
plz explain me (Chandana)
Answers were Sorted based on User's Feedback
Answer / pbre
hi you can try this one
browser("SCP").Page("SCP").WebList("ctl00$WebPartManager1
$ResultSu").Click
a = browser("SCP").Page("SCP").WebList("ctl00
$WebPartManager1$ResultSu").GetROProperty("items count")
msgbox a
For i=1 to a
c =browser("SCP").Page("SCP").WebList("ctl00$WebPartManager1
$ResultSu").GetItem(i)
reporter.ReportEvent micPass,c,c
Next
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / rajaputra
url="http://corp.naukri.com/mynaukri/mn_newsmartsearch.php?xz=2_0_5&id="
Systemutil.Run "Iexplore.exe",url
set oDesc= Browser("name:=Mynaukri : naukri.com - India's
No.1 Job Site")
itemcount=oDesc.WebList("name:=qe").GetROProperty("items count")
msgbox "Number of Items in Experience List= "& itemcount
itemcount=oDesc.WebList("name:=qm").GetROProperty("items count")
msgbox "Number of Items in Minimum Salary List= "&itemcount
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / nani
The Following script displays the number of items in the
list box.
intFieldItemsCnt =CInt(GetProperty(Browser
("Browsername").Page("Pagename").Weblist
("weblistname"),"items count"))
msgbox intFieldItemsCnt
Any doughts feel free to make a mail to: nani4urs@gmail.com
| Is This Answer Correct ? | 3 Yes | 8 No |
What is Data driven Testing Frame work.Anybody can expain it in Detail.. Pls anybody can give the answer.. Thanks in advance...
can u please explain what r the challenges u faced in ur automation testing
What is Regular Expressions?
HI. AnyBody can explain Automation Testing Framework...Generally wht do we Intiate before going to start Automation testing process... Anybody can explain.......Thanks in advacne...
Can the mode of object repository be change during run time? Eg. if the mode is per-action during design time can i change it to shared and vice-versa? Any scripting possible?
Hi,iam new to automation and i have 1 year experience in manual testing.I have a little bit idea about QTP9.0 .But i have no idea about script writing using VB.Please help to learn script writing.
is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?
What kind of errors can b handled in QTP in real time scenario?
what is the structure for the data driven framework
How to creating an output value using quicktest professional (qtp)?
The xls contain data. how to get number of columns form the sheet?
You say it is a bug but developer say it is not a bug then what will you do?
7 Answers Hewitt, Tech Mahindra,