Compare 2 text fields on Ranorex

Best practices, code snippets for common functionality, examples, and guidelines.
moadipp
Posts: 5
Joined: Mon Jun 05, 2017 2:10 pm

Compare 2 text fields on Ranorex

Post by moadipp » Wed Aug 16, 2017 1:34 pm

Hello,

I want to validate that 2 fields have the same text. But I still have a report failure, even when I use the same fields!
Can someone help me?

Here the info:

[img][/report.png]
[img][/info.png]
Attachments
report.gif
report.gif (47.26 KiB) Viewed 415 times
info.png
info.png (330.38 KiB) Viewed 415 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Compare 2 text fields on Ranorex

Post by Support Team » Wed Aug 16, 2017 4:36 pm

Hi Moadipp,

Place a breakpoint in your code and step through it. This will allow you to see what the variables equal at runtime and understand why they are not equal.

I hope this helps!

Cheers,
Ned
.
Image