5 Answers, 1 is accepted
0
Hello Wenwen,
You can open and select an item from the Kendo dropdownlist as such (example is against KendoUI's public demo):
Let me know whether the snippet helps or if you have any additional questions.
Regards,
Mario
Telerik
You can open and select an item from the Kendo dropdownlist as such (example is against KendoUI's public demo):
ActiveBrowser.NavigateTo(
"http://demos.kendoui.com/web/dropdownlist/cascadingdropdownlist.html"
);
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
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
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
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
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?