Validation text

Best practices, code snippets for common functionality, examples, and guidelines.
armstronghm24
Posts: 42
Joined: Tue Dec 20, 2016 10:16 pm

Validation text

Post by armstronghm24 » Mon Feb 12, 2018 5:03 pm

Hi,

I am trying to do a simple validation on text for an element, but the validation is failing unexpectedly. Am I missing something here? I have a screenshot showing that the expected value matches the actual value, but it is still failing.
2018-02-12_10-02-22.png
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Validation text

Post by odklizec » Mon Feb 12, 2018 5:31 pm

Hi,

The most common reason of problem like this are non-printable characters in front or behind the validated string. Could you please post a Ranorex snapshot? The solution is to use AttributeRegex validation, instead of AttributeEqual.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration