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

count the number of options in a HTMLselect element

2 Answers 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 30 Jan 2013, 12:14 PM
Hi there
       Apologies if this has been asked before but how do you count the number of options in a HTMLselect element?

Thanks

Carl

2 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 30 Jan 2013, 01:11 PM
Hello Carl,

You can do that with a coded step. First add your Select control element to the Elements Explorer, then Reference that element in code and use the Options collection. Please see this video for a demonstration.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Carl
Top achievements
Rank 1
answered on 30 Jan 2013, 01:46 PM

Thanks Plamen that’s exactly what I was looking for.

Tags
General Discussions
Asked by
Carl
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Carl
Top achievements
Rank 1
Share this question
or