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 |
Waht is diff between SystemUtil.Run and invokeapplication
What are the recording modes in qtp?
write script for "dropdown button having how many words? for ex.SELECT CITY is dropdown name.. find out how many cities in that?
How to find given string is palindrome or not without using strreverse() function?
1)What is the Difference Between WaitTo & Sync?
What are the general steps involved in the data driven framework?
There is a very good institute for Automation Testing using QTP.For more details please visit jbslearnings.com.
how can we test load time of an page in webtesting?
what are the different kinds of frameworks in automation?
Can we record using all the modes in a single script? Explanation with example is appreciated
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
What is the difference between Global and Local Data Sheets?