count the number of options in a HTMLselect element

3 posts, 1 answers
  1. Carl
    Carl avatar
    11 posts
    Member since:
    Apr 2012

    Posted 30 Jan 2013 Link to this post

    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. Answer
    Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 30 Jan 2013 Link to this post

    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
  3. Carl
    Carl avatar
    11 posts
    Member since:
    Apr 2012

    Posted 30 Jan 2013 Link to this post

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

Back to Top