Get Items Count in ListView

4 posts, 0 answers
  1. venkat
    venkat avatar
    2 posts
    Member since:
    Feb 2013

    Posted 18 May Link to this post

    Hi,

    Do we have any mechanism to get the number of items available or displayed (say count) in the list view through Telerik Test Studio.

    I could not find respective attribute available in the API. I also, checked the inbuilt translator and could not find it there.

     

    Thanks,

    Venkat.

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 19 May Link to this post

    Hello Venkat,

    Could you please send me a screen shot of the DOM of that list view so I can prepare the coded example.

    Thank you!

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. venkat
    venkat avatar
    2 posts
    Member since:
    Feb 2013

    Posted 19 May in reply to Boyan Boev Link to this post

    Hi Boyan,

    Please find attached snapshot depicting listView elements.

    Thanks and Regards,

    Anil Kumar.

  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 24 May Link to this post

    Hello Venkat,

    Find the code you may use below:

    HtmlUnorderedList ul = Manager.ActiveBrowser.Find.ByExpression<HtmlUnorderedList>("class=km-listview");
    Log.WriteLine(ul.Items.Length.ToString());

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top