Forum Discussion
- baxatobCommunity Hero
Hi,
Can you provide your text sample and the code you are using?
- Moulya_pOccasional Contributor
The text is just a string with more than 50 characters. I am passing this string to the textbox using the Keys method. After adding this text, I am checking in the panel where it is displayed, whether the text is word wrapped ot not.
var str = "Any string which is more than 50 characters"
var textArea = obj.FindChild(["ObjectType", "className"], ["Textarea", "noteText"], 5);
textArea.Keys(str);
//Click on Add button to add the text
var textPanel = obj.FindChild("ObjectType", "className"], ["Panel", "card-text"], 5);
var bool = textPanel.WordWrap;
I am very new to TestComplete, so I don't know if my approach is right or not. I would really appreciate if you could provide me your inputs.
- tristaanogreEsteemed Contributor
What is the error message you're getting?
Related Content
- 4 years ago
- 3 years ago
- 5 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago