Translator for Kendo dropdownlist

5 posts, 0 answers
  1. Wenwen
    Wenwen avatar
    3 posts
    Member since:
    Dec 2012

    Posted 16 Jul 2013 Link to this post

    Hey, telerik

    is there any translator for kendo UI dropdownlist ? If you do/don't have, could you give sample snippet of codes how to select list item?

    Thanks, 
  2. Mario
    Admin
    Mario avatar
    8 posts

    Posted 18 Jul 2013 Link to this post

    Hello Wenwen,

    You can open and select an item from the Kendo dropdownlist as such (example is against KendoUI's public demo):

     
    KendoInput dropdownlist = Find.ByExpression<KendoInput>("aria-owns=categories_listbox");
    dropdownlist.ToggleCombo();
     
    System.Threading.Thread.Sleep(1000);
    ActiveBrowser.RefreshDomTree();
     
    HtmlListItem item = Find.ByContent<HtmlListItem>("Produce");
    item.MouseClick();

    Let me know whether the snippet helps or if you have any additional questions.

    Regards,
    Mario
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. sreekanth n
    sreekanth n avatar
    2 posts
    Member since:
    Jan 2010

    Posted 24 Aug 2013 Link to this post

    KendoInput dropdownlist = Find.ByExpression<KendoInput>("aria-owns=categories_listbox");
      
    i am unable to compile due to error at "KendoInput".  I guess it needs to be imported similar to htmlControls.   Pl lets me know how to reference the same.
  4. Mario
    Admin
    Mario avatar
    8 posts

    Posted 28 Aug 2013 Link to this post

    Hello Sreekanth,

    You are certainly correct and will just need to reference the Telerik.TestingFramework.Controls.KendoUI dll in order to use the KendoUI wrappers/translators.

    Regards,
    Mario
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Srinivasan
    Srinivasan avatar
    15 posts
    Member since:
    Jun 2015

    Posted 16 Jun 2015 Link to this post

    The above code is not working it throw an error.Is there any other solution to select the kendo dropdown.
Back to Top