I am new to Ranorex and C#. I am having the following problem:
In our application, I need to validate a displayed date field. Everyday, when the application is ran, the value of the date field changes.
The day the test is recorded, it works fine. The following day, the execution of the test fails with the message:
"Failed to find item 'MyRepo.WebDocumentHash.Text12062014'.
No element found for path '/dom[@domain='qa4-lexo-util.accovia.com:18180']/?/?/flexobject[@id='bookingApp']//container[@automationname='5 - Confirmation']/form[@type='Form']/container[@automationname='Date d''annulation']/text[@automationname='12/06/2014']' within 1m.
The [@automationname='12/06/2014'] portion of the Path takes the date of the creation of the path.
Code: Select all
DateAnnul = repo.WebDocumentHash.Text12062014.TextValue;
Vic
Ranorex 5.0.3.18203
Windows XP, Service Pack 3
I.E. 7