Forum Discussion
Hi Dominik,
Did I get it right that .contentText is used for text comparisons only and not for objects identification in NameMapping?
If my understanding is correct, why not to create, say, TextUnhyphenate(strValue) function that will do exactly what your guys did for Cypress and wrap all calls to xxx.contentText with this function?
E.g.:
if (strValueFromDB == TextUnhyphenate(someUIobject.contentText)) {...}
I think that you even can create a regular expression to wrap everything that ends with .contentText with a call to the function.
Another possible option might be to use some other property that contains same value as .contentText but without hyphenation and use this property instead of .contentText.
- Lagencie3 months agoFrequent Contributor
yeah you understood it correctly.
The notepad replace over all files with a function like that was our first in mind option also, but I was somehow hoping that there might be a setting / property whatever to check in testcomplete where we can make it like "shy hyphenation on" or whatever so it automatically turns those ­ into nothing by default as it is a very common used hyphenation option within angular / ng
Related Content
- 5 years ago
- 8 years ago
- 13 years ago
Recent Discussions
- 4 minutes ago
- 9 minutes ago