Hi All,How to check number of items in a WebList at run time. I have tried using Browser("browser name").Page("page name").Frame("frame name").WebList("list1").GetROProperty("length"), but it is not returning anything. GetROProperty("size") is also not working.Please let me know which run time property I have to check.

Questions by ArcMai

Showing Answers 1 - 6 of 6 Answers

ravi

  • Nov 1st, 2006
 

TRY USING  Browser("browser name").Page("page name").Frame("frame name").WebList("list1").GetROProperty("ALL ITEMS") INSTEAD OF LENGTH PROPERT

  Was this answer useful?  Yes

sweety

  • Nov 1st, 2006
 

Try "getTOproperty"

  Was this answer useful?  Yes

Uday Kumar. A

  • Nov 2nd, 2006
 

Hi,

Try with this:

noItems=browser("Car information, new car").Page("Car information, new car").WebList("mmMakes").GetROProperty("items count")

If you want to find the property values of a Run Time object, use Object Spy or the object properties in Object Repository.

Thanks,

Uday Kumar. A

Arc_Mai

  • Nov 3rd, 2006
 

GetROProperty("ALL ITEMs") returns all the items in the list. Is there any property that I can use to get the number of items in the list?

"Items count" property is used for test object, not for run time object.

Thanks

Archana

  Was this answer useful?  Yes

Ashish

  • Nov 6th, 2006
 

GetROProperty("ALL ITEMs") returns string containing all the items in the list. these items are separated by delimiter such as ";" or a new line character. you can count these delimiters to get items count.

  Was this answer useful?  Yes

Hemant Basaiwala

  • Nov 14th, 2006
 

I believe the method GetItemsCount can give the result of your question

  Was this answer useful?  Yes

tina oberoi

  • Nov 30th, 2006
 

Actually we have to check the property, we are going to use the check point

  Was this answer useful?  Yes

Ankush

  • Feb 23rd, 2007
 

Folow the following simple steps

1. Go to the Active Screen and right on the drop down that u want to check
2. Click on Insert Standard CheckPoint.
3.Click on Ok of the Object Selection Dialog.
4. There will be a property in the Check Point properties Dialog Called "items Count" Check that property and Click OK.

  Was this answer useful?  Yes

use this childobject method u find out all objects in web pages
use this code

Set odesc=description.Create()
set i=Browser("Rediff Shopping: ,  Electronic").Page("Rediff Shopping: ,  Electronic").ChildObjects(odesc)
n=i.count()
msgbox n

  Was this answer useful?  Yes

Vimala Ns

  • May 9th, 2011
 

Count =Browser("name:=Astrology - Yahoo! India News").Page("title:=Astrology - Yahoo! India News").WebList("innertext:= All News Yahoo! News Only").GetROProperty("items count")
msgbox count

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions