you'll need to go into the DOM structure of the application and examine how the items in the drop down are defined. Let's take the following application:
We have 4 jquery drop-downs. When we bring up the DOM Explorer and we examine them we see that the items for each drop-down are defined in a UL (HTML Unordered List) (see screenshot 1). Now you can add the Unorder List item to the Elements Repository (screenshot 2).
Now you can access this element from a coded step:
You're looking for the number of items in the menu. This corresponds to the number of LI elements inside of the UL. Since the LI elements are children of the UL you can use the following code to get their count:
And you can write this value to the Log like this:
"Number of items in drop-down:"
I've attached the Test Project with the test demonstrating this example. I hope this helps.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items