Forum Discussion
I know about another trick, but I did not find any documentation on it, so use it at your own risk :smileywink:
There is "tcWebTestingRules.xml" configuration file in the "TestComplete 10\Bin\Extensions" folder.
To add "ng-reference" to the list of properties that can be used when mapping Panel (div) objects, you should find the following comment
<!-- FORM SPECIFIC -->
and right before it insert the following code:
<!-- PANEL SPECIFIC --> <MapOnAnyLevelRule> <Recognition> <True Name="canBeMappedOnAnyLevel" /> <Eq Name="ObjectType" Value="Panel" /> </Recognition> <Optional>ng-reference</Optional> </MapOnAnyLevelRule>
Then restart TestComplete, and after that auto mapping of Panels should use the "ng-reference" attribute as well.
Don't forget to backup the original file :smileyhappy:
Hey @dganov.
I really wonder how you found out this trick, anyway, it does work :). Thanks.
Even though it become easier to map object automatically, it uses a property (ng-reference) that is not accessible through Object Spy...
Still looking for a solution to add Extended Property to Object Browser !
Guillaume
Related Content
Recent Discussions
- 30 minutes agoGill