Forum Discussion
Is the text all on one line in the application?
I have had issues like that where the strings look the same, but there was actually a new line character that wasn't obvious to me just looking at the string (it just looked like a space).
- baxatob10 years agoCommunity Hero
Hi!
Try to use contentText property instead of textContent in your object checkpoints.
Also you can refer here: https://support.smartbear.com/viewarticle/73488/
- FRin32310 years agoOccasional Contributor
Thanks baxatob for that link but no luck.
baxatob wrote:Hi!
Try to use contentText property instead of textContent in your object checkpoints.
Also you can refer here: https://support.smartbear.com/viewarticle/73488/
- FRin32310 years agoOccasional Contributor
cshukusky wrote:Is the text all on one line in the application?
I have had issues like that where the strings look the same, but there was actually a new line character that wasn't obvious to me just looking at the string (it just looked like a space).
Yes, it's the text in a drop down menu entry.
- joseph_michaud10 years ago
Staff
Add some code before the checkpoint. Print out the length of the string in the stored object and from app object. Convert the strings to arrays of characters (JScript: myArray = string.split("")). Compare the arrays. If still no difference detected, look at the character codes of the characters (string.charCodeAt()).
- Colin_McCrae10 years agoCommunity Hero
I'm with Joseph.
There must be hidden (non-printing) characters in there somewhere. In my experience, it's normally CHR(10) - new line - or CHR(13) - carriage return.