cancel
Showing results for 
Search instead for 
Did you mean: 

Object names changing after updating

Highlighted
New Contributor

Object names changing after updating

Hello,



It seems that if we update our website, even if the objects that I am testing are not changed in the update, the object names will still change. I am using TestComplete 9.20 on Internet Explorer. For example, an object name might go from:

Aliases.browser.pageAddAttachment.formFormbody.table.cell1.panelAttachment.panelSfquestions.fileAttachmentCustomattributesDr



to



Aliases.browser.pageAddAttachment.formFormbody.table.cell2.panelAttachment.panelSfquestions.fileAttachmentCustomattributesDr



The number after cell gets changed. I bolded this number to make it easier to find.



This causes the test to not find the object on the website and thus fail. Is there any way to get around this using Keyword Testing? 



Thank you,



Taylor









2 REPLIES 2
Highlighted
Contributor

RE: Object names changing after updating


This may not be the best way to identify some element in your application. 


 


That way you have a very strong dependence of the stability of its application. If some field changes location on the screen, although the properties are the same, you certainly will not find it at runtime. 


 


Consider using another way to look for the elements on the screen. 


 


See more at: 


 





Highlighted
Community Manager

RE: Object names changing after updating


Hi Taylor,


 


There is a great video demonstrating TestComplete's features you may use to create a reliable test for dynamic objects. 



 

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?


Top Kudoed Authors