Last Updated: 11 Dec 2019 11:54 by ADMIN
Created on: 15 Mar 2019 09:22
Type: Bug Report
KendoAngularNumericTextBox does not support enter text
I got a problem with the test studio and the element KendoAngularNumericTextBox. These are elements which can be used to increase numbers or input them.

The test studio sends chars, so the step fails every time.

Error Message: Step failed.
Target '[Element: kenod-numerictextbox: (id....)] is not a supported element to set text to.'
Plamen Mitrev
Posted on: 11 Dec 2019 11:54

Hello Devin,

I am sorry for the troubles with this action. You can try the following workarounds to automate this step.

  1. Select the KendoAngularNumericTextBox and enable SimulateRealTyping. Now Test Studio will simulate real desktop keyboard actions as the real user behavior (see simulateRealTyping.png). During the test execution, Test Studio will scroll the element to the top of the page and click in the field. Then it will input the numbers with keyboard actions and not as a plain text.
  2. You can use a coded step, like the example below, to make the necessary action. The code below should double click on the element, delete the current content and enter a number using keyboard presses. Before that, you need to add System.Windows.Forms as an assembly to the project and reference it in the coded step.
    Pages.KendoAngularDemoApp0.KendoNumerictextboxTag.MouseClick(ArtOfTest.WebAii.Core.MouseClickType.LeftDoubleClick, 0, 0, ArtOfTest.Common.OffsetReference.AbsoluteCenter);
  3. You can use the coded approach to simulate the real user behavior and make sure that the element is visible on the page. Please check the code sample below and adjust the Pages element according to your project.
    Pages.Overview.FrameExampleBasicUsage.KendoNumerictextboxTag.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementBottomAtWindowBottom); //scroll the element to the bottom of the page to ensure it is visible
    Pages.Overview.FrameExampleBasicUsage.KendoNumerictextboxTag.MouseClick(); //click on the textbox
    Manager.Desktop.KeyBoard.TypeText("12", 50, 100, true); //send desktop keyboard commands, which simulates real user typing

I hope those suggestions will help you with the automation at hand until we implement a solution for this issue. You can follow the public bug report to get notifications for its progress.

Thank you for you understanding.

Plamen Mitrev
Progress Telerik

The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Attached Files:
Posted on: 10 Dec 2019 20:49
I'm running into the same issue. I cannot get my test step to enter a number into a Kendo Numeric text box to complete successfully. I also am unable to identify a suitable workaround.