How to record dynamic object name- Keyword Test
Hi,
I'm testing a booklet for an achievement test which has two parts and these parts contain 'Drag and Drop' question type.
When I record a test of 'Drag and Drop' for Part1, everything is running perfectly. However, the same objects cannot be applied to 'Drag and Drop' of Part2. As soon as I record a new test for Part2, I get new objects and the previous ones do not work for Part1 anymore.
For example for the first dragged item:
Part1: Aliases.browser.pageAssessmentMasterEngineLms.frameContentFrame.textnode2
Part2: Aliases.browser.pageAssessmentMasterEngineLms.frameContentFrame.textnode32
The questions are like multiple choice. Except the content, the logic is the same.
I am not an IT person and an advanced user in TestComplete. Therefore, I would be glad if someone could help me with non-technical terms :)
Thank you in advance
Yagmur
So it seems like the mapping settings for that textnode contains redundancies to begin with, since contenttext, innertext, and outertext, are all the same. Before trying to wild card (*) out any of those identification settings, have you tried to look for any object properties that are static and unique that you might be able to use? (other than the properties that contain the dynamically generated numbers)
Also when you update the outerHTML property, i believe that you should use the * instead of ? such that :
<span data-am-translate="Question14.Draggable.*" data-am-translate-group="Question 14" data-wysiwyg="false">*</span>
but this may lead to some ambiguous recognition errors, if there are additional textnodes in that drag and drop portion of the applications that also fall into that mapping setting.