Script is failing after added icon

1 Answer 104 Views
General Discussions
Srilatha
Top achievements
Rank 1
Srilatha asked on 13 May 2021, 10:34 AM

Hi Team,

 

using CSS,  Added icon in empty autocomplete field to let the users know that is data can be assigned to that field by clicking or typing on it . So After added this icon scripts are failing.

I have recorder for one script after change was done.

It is recording as kendoAngularTextbox, but previously it is KendoAngularAutoComplete.

Please find the attachments for screenshot.

Is there any way to execute scripts without recording, because this feature was added in all other areas.

 

 

 

Thanks & Regards

Srilatha

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 14 May 2021, 02:14 PM

Hello Srilatha,

Based on the shared screenshot, it seems that the control in the tested application was changed from an autocomplete to a textbox. Although the visual representation for this might be only in a new icon, the DOM tree of the page is completely changed. 

This is how Test Studio stopped recognizing the element using the previously recorded step and the tests started failing. Then, recording a new step, which fetched the new element, resulted in a successful test run. Unfortunately, this is a major change in the application under test, which requires a different type of step and new element in the terms of Test Studio tests and this means some maintenance. 

You can check which tests and steps are using the previous element - the autocomplete, and replace the step with the newly recorded one (listed in the screenshot). 

  1. Click the KendoAngularAutocomplete step - the target element for this step will be marked with a red arrow in the Elements Explorer.
  2. Right click on this element and choose Used By - this will list all tests and step where this element is used.
  3. Select the newly recorded step - the KendoAngularTextBox step, to copy it. Then paste it to replace the KendoAngularAutocomplete in the steps from the list you saw in point 2. 

Since you mentioned this control was changed across other areas of the application, you will need to do the same for all other steps, which were using that kind of element and it was replaced now. 

I hope this suggestion will work for you. Let me know if you need any further assistance on the case.

Regards,
Elena
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
Tags
General Discussions
Asked by
Srilatha
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or