Validate Attribut Null

Ranorex Spy, Recorder, and Studio.
MB_wiko
Posts: 85
Joined: Fri Sep 09, 2016 1:05 pm

Validate Attribut Null

Post by MB_wiko » Mon Mar 06, 2017 12:57 pm

Hello together,

we would validate an attribute which has no value. Unfortunatley Ranorex following:

Attribute 'TagValue' of element for item 'Produktiv_lokalRepository.WebDocumentLogin.SomeTdTag11_MB' does not match the specified value (actual='(null)', expected='(null)').

(null) is equal to (null)? I don't understand why the Validation is failed?!? I tried with Attribut contains null and regex. but no success. It is a tast case to delete the value. Has someone an idea?

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

Re: Validate Attribut Null

Post by odklizec » Mon Mar 06, 2017 1:14 pm

Hi,

I think this post should help you...
http://www.ranorex.com/forum/failure-on ... tml#p12762
By default, Ranorex expects the validated item is 'String'.
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

MB_wiko
Posts: 85
Joined: Fri Sep 09, 2016 1:05 pm

Re: Validate Attribut Null

Post by MB_wiko » Tue Mar 07, 2017 7:51 am

That is the solution, Thanks.