This is a migrated thread and some comments may be shown as answers.

Get Items Count in ListView

3 Answers 181 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
venkat
Top achievements
Rank 1
venkat asked on 18 May 2016, 09:32 PM

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.

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 19 May 2016, 12:51 PM
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!
0
venkat
Top achievements
Rank 1
answered on 19 May 2016, 05:54 PM

Hi Boyan,

Please find attached snapshot depicting listView elements.

Thanks and Regards,

Anil Kumar.

0
Ivaylo
Telerik team
answered on 24 May 2016, 10:30 AM
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!
Tags
General Discussions
Asked by
venkat
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
venkat
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or