Item of Web-Application is not found in running testcase

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
nataka
Posts: 2
Joined: Mon Feb 16, 2015 3:45 pm

Item of Web-Application is not found in running testcase

Post by nataka » Tue Feb 17, 2015 9:01 am

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!

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Tue Feb 17, 2015 3:55 pm

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.
Shortcuts usually aren't...