Forum Discussion
Hi,
If no relevant property provided by TestComplete can be found in the Object Browser, I would talk to developers and ask what native property/method can be used to get trimmed text. With a high probability this property/method should be accessible from TestComplete so you should be able to use it in your test code.
Hi Alex,
Thanks for your response.
The main issue is that I have written this code.
WPF process 'text trimming' under the hood and there is no method to get the value of the trimmed string.
Maybe, I could talk with the ObjectSpy or Testcomplete-core developer about this?
Do you know any person to mention here?
- AlexKaras4 years agoChampion Level 3
Hi,
> there is no method to get the value of the trimmed string.
If trimmed text is just rendered on screen without been accessible via some method or property then you may try text recognition in TestComplete: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/about.html
Support can be contacted via the https://support.smartbear.com/testcomplete/message/ form.
P.S. If the code to create trimmed text is under your control, isn't it more easy and reliable for testing to keep trimmed text in some property accessible to TestComplete?
Related Content
- 4 years ago
- 9 years ago
Recent Discussions
- 10 hours ago
- 7 days ago
- 10 days ago