Page 1 of 1

Item of Web-Application is not found in running testcase

Posted: Tue Feb 17, 2015 9:01 am
by nataka
Hello Support team,

I have a Problem with some elements of my Web-Application, which is implemented with Angular. They are found by the Ranorex Spy, but when I start running the test, they are not reliably found anymore. Sometimes it runs and sometimes the test breakes with the information "element is not valid". After applying the path of the item once again (without any changes), the element is found for the next run of the testcase. By now, this behaviour occurred with items of the type table data cell. I'm using Ranorex 5.0.5. and testing in IE11. Do you have any idea?

Thanks in advance!

Re: Item of Web-Application is not found in running testcase

Posted: Tue Feb 17, 2015 3:55 pm
by krstcs
That usually means that the system under test has updated the element in some way since the last time Ranorex found it and now Ranorex's cache of the element is not valid.


Try adding a Validate.Exists() action against the element just before you try to use it. This will force Ranorex to re-cache the new element.