UI element not found using relative path

Best practices, code snippets for common functionality, examples, and guidelines.
Dazzybong
Posts: 1
Joined: Wed Apr 03, 2019 2:45 pm

UI element not found using relative path

Post by Dazzybong » Wed Apr 03, 2019 2:58 pm

Hi Guys

Hope someone here can help me - I am creating a solution in Ranorex Studio using a desktop application.

The test completes successfully however there are a few warnings which are all the same, warning message below,

"Item 'Expenses300Repository.ApplicationUnderTest.AddExpense' could be found using its absolute path, but not using its relative path from the cached element of parent folder 'Expenses300Repository.ApplicationUnderTest'. This can happen if either the item search timeout is too small or if items within a rooted folder do not share a common parent element. To fix this problem, first increase the item search timeout. If this does not help, create a separate rooted folder for this item or disable caching for the specified folder."

I have tried the suggestions in the above message to resolve the issue but to no avail. I have uploaded a snap shot.

Please can someone help?

Thanks

Darren
Attachments
Expenses.rxsnp
(383.57 KiB) Downloaded 6 times

User avatar
N612
Posts: 94
Joined: Mon Jul 11, 2016 4:01 pm

Re: UI element not found using relative path

Post by N612 » Wed Apr 03, 2019 4:37 pm

Every time I have seen this warning, the third recommendation in the warning resolve the issue. Did you try disabling the caching feature on the root repository item of the problematic element? The 'Use cache' property should be set to false as pictured below.
Attachments
1.png
1.png (1.94 KiB) Viewed 323 times