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

Translator for Kendo dropdownlist

5 Answers 166 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wenwen
Top achievements
Rank 1
Wenwen asked on 16 Jul 2013, 10:38 PM
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, 

5 Answers, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 18 Jul 2013, 06:59 PM
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
0
sreekanth n
Top achievements
Rank 1
answered on 24 Aug 2013, 11:37 AM
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.
0
Mario
Telerik team
answered on 28 Aug 2013, 10:01 PM
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
0
Srinivasan
Top achievements
Rank 1
answered on 16 Jun 2015, 11:47 AM
The above code is not working it throw an error.Is there any other solution to select the kendo dropdown.
0
Rick
Top achievements
Rank 1
answered on 24 May 2017, 01:40 PM
I'm having the same issue.  I'm testing with Geb.  Can you post an example written in Groovy please?
Tags
General Discussions
Asked by
Wenwen
Top achievements
Rank 1
Answers by
Mario
Telerik team
sreekanth n
Top achievements
Rank 1
Srinivasan
Top achievements
Rank 1
Rick
Top achievements
Rank 1
Share this question
or