Kendo AutoComplete

4 posts, 0 answers
  1. Srilatha
    Srilatha avatar
    2 posts
    Member since:
    Sep 2017

    Posted 14 Sep Link to this post

    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.

  2. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    257 posts

    Posted 19 Sep Link to this post

    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!
  3. Anna
    Anna avatar
    1 posts
    Member since:
    Sep 2016

    Posted 15 Nov in reply to Nikolay Petrov Link to this post

    Hi Nikolay

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

    Feels like a bug to me.

  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    670 posts

    Posted 20 Nov Link to this post

    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!
Back to Top