Carriage return missing when validating text

Bug reports.
ddweber
Posts: 3
Joined: Wed Sep 04, 2019 10:13 am

Carriage return missing when validating text

Post by ddweber » Mon Oct 21, 2019 2:33 pm

Hello,

I am testing our WPF/WinForms application on windows and now i am trying to validate the content/text property of a multiline text control.
I have set the text of the control to the following:

Code: Select all

Statement1 CR LF
Statement2
My validation keeps failing because in the actual value the carriage return is missing (there is only the linefeed left) so it looks like this:

Code: Select all

Statement1 LF
Statement2
When I am looking at the control via Ranorex Spy i can see the text property is set correctly and i can even get the value read out properly (including the CR)

I have no clue how to deal with that behaviour. Does anybody know about this issue?

Info:
Technologie used is UIAOnly.
Windows 7 Enterprise SP1
Ranorex 9.2.0

User avatar
N612
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: Carriage return missing when validating text

Post by N612 » Mon Oct 21, 2019 8:53 pm

Odd. It seems you are doing things correctly. Are you able to provide a Ranorex Snapsshot file so we can better understand the AUT and potentially spot the issue?