Page 1 of 1

Issue validating field in windows calc app

Posted: Fri Oct 19, 2012 8:56 pm
by SeanP
I just returned from the ranorex training in San Fran and I was walking through the process with my group and we found that with Windows 7 when we recoreded a 1 + 1 then hit equal then did a validation in the text field for 2, we kept getting null as the value it was comparing when in reality it was a 2. Any clue what is going on?

Re: Issue validating field in windows calc app

Posted: Mon Oct 22, 2012 6:39 am
by artur_gadomski
Are you using this text box:
/form[@title='Calculator']/element/container[@caption='' and @class='#32770']/text[@controlid='150']
?
Calculator has a bunch of other text boxes that do not contain answer.

Re: Issue validating field in windows calc app

Posted: Tue Oct 23, 2012 6:18 pm
by SeanP
This was the line on the validation element

Validating AttributeEqual (Text='2') on item 'Calculator.Text160'.

Re: Issue validating field in windows calc app

Posted: Wed Oct 24, 2012 8:50 am
by artur_gadomski
Yes it seems like you need to change the RxPath of Text160 to the one I posted.