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

Kendo AutoComplete

3 Answers 126 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Srilatha
Top achievements
Rank 1
Srilatha asked on 14 Sep 2017, 01:21 PM

Hi,

In Telerik Test Studio, Kendo AutoComplete while trying to select data from dropdown its not allowing to select the selected item in test scripts. while recording the script it is being selected but while running the script i'm unable to select the record from autocomplete. can you please guide me with this. Thank You.

3 Answers, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 19 Sep 2017, 07:30 AM
Hi Srilatha,

I would suggest the following approach to this problem. Using a coded step after text enter step with the following lines in C# :

// Provide time to animate the auto-complete box
System.Threading.Thread.Sleep(1000);
// Press on Arrow Down Key
ActiveBrowser.Manager.Desktop.KeyBoard.KeyPress(ArtOfTest.WebAii.Win32.KeyBoard.KeysFromString("Down"), 150, 1);
// Press on Enter Key
ActiveBrowser.Manager.Desktop.KeyBoard.KeyPress(ArtOfTest.WebAii.Win32.KeyBoard.KeysFromString("Enter"), 150, 1);

This should provide some time to animate the auto-complete box and would press on arrow down and enter key to choose the full option.

Best Regards,
Nikolay Petrov
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Anna
Top achievements
Rank 1
answered on 15 Nov 2017, 09:08 PM

Hi Nikolay

Seriously? DropDownList has also dropping list box and it doesn't require any coded step..

Feels like a bug to me.

0
Elena
Telerik team
answered on 20 Nov 2017, 09:23 AM
Hi Anna,

Thank you for contacting us. 

Please note that the provided solution seems to be a workaround for a particular issue. Although the provided details are not complete and could not be determined if this is the only approach to handle the misbehavior. 

If you experience similar issue I would suggest you insert a short execution delay after typing the value to be filtered in the Kendo dropdown. Usually the autocomplete filtering requires few seconds to display the entries that contain the entered value and since execution is always faster than recording the speed of running the test needs to be sometimes additionally controlled. 

Another important thing would be to carefully choose the find expression for the element to select from dropdown. In most cases you could rely on the exact text content to select the correct filtered item. 

Though in case of some particular difficulties you might have please elaborate more on the exact issue and I will be glad to assist you! 

Thank you in advance for your understanding and cooperation!  

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Srilatha
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Anna
Top achievements
Rank 1
Elena
Telerik team
Share this question
or