How to get list of items from a Weblist? - TestingQ.com

-->Exclusive Portal for Testing Jobs

How to get list of items from a Weblist?

Ans: By using "all items" property we can get all the list items from a WebList then split with semi colon (;)
Ex: allListItems=Browser("Sign in - Google Accounts").Page("Sign in - Google Accounts").WebList("lang-chooser").GetROProperty("all items")
 msgbox allListItems
 arrList=Split(allListItems,";")
For i = 0 to UBound(arrList)
  listItem=listItem & arrList(i) & Vbcrlf
Next
msgbox listItem 

To receive daily posted JOBS & Interview Questions
Just enter your email address below and click 'Submit'
Enter your email address:

Make sure to activate your subscription by clicking on the activation link sent to your email