Failed to find item

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
royaza
Posts: 1
Joined: Tue Nov 17, 2015 9:18 am

Failed to find item

Post by royaza » Tue Nov 17, 2015 10:10 am

I am beginner in Ranorex and I am following the Ranorex tutorial. I run it and it works. Then I run the same test with different input data. I faced 2 errors:

1. In the Spy View, all the icons are red and it is written the elements for the respitory folder "MAinForm" could not be found.

2. When I run the program, this error occurs:

Failed to find item 'myFirstTryRepository.MainForm.Edit'.
No element found for path '/form[@controlname='MainForm']/?/?/menuitem[@accessiblename='Edit']' within 1m.

I increase the search time to 30ms but still it has not been solved.

I would be thankful to guide me.

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

Re: Failed to find item

Post by krstcs » Tue Nov 17, 2015 4:26 pm

Most like this problem has nothing to do with the timeout and, instead, is related to an incorrect XPath. Use Ranorex Spy to TRACK the menu item again and verify that the XPath that Spy generates for it is the same as the one you have in the repository. If it isn't then you need to change the XPath in the repository so that it points at the correct element.
Shortcuts usually aren't...