Actions Slow to Execute in Playback

Ranorex Spy, Recorder, and Studio.
Posts: 2
Joined: Wed Apr 17, 2019 7:59 pm

Actions Slow to Execute in Playback

Post by ariberdy » Sat Jul 06, 2019 1:00 am

When playing back a new recording, certain actions wait for the entire timeout time before they complete and advance to the next action. If I hit SHIFT+PAUSE, then the action instantly completes successfully and goes to the next action. Also, if I decrease the timeout time, of course, since the action uses all the time allotted to it, the action completes more quickly. I've never had this problem before. I do get the following warning for every action where I hit SHIFT+PAUSE.

"Item 'PayneUnitTest1Repository.Word.TreeView20WndClass.TreeView20WndClass' could be found using its absolute path, but not using its relative path from the cached element of parent folder 'PayneUnitTest1Repository.Word'. 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've attached a snapshot if that might be useful.
File New Form.rxsnp
(19.04 KiB) Downloaded 20 times

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6545
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Actions Slow to Execute in Playback

Post by odklizec » Mon Jul 08, 2019 11:30 am


Have you tried the steps described in error message? Also, could you please post the xpath for given element, as you have it stored in repository? My guess is that the xpath is too general and therefore, it's impossible to find the element using given xpath. Aside improving xpath and/or creating rooted folder, you can also try using Ranorex whitelist, where you can specify the process name of tested app, which may dramatically improve the element search speed. Also, a pretty similar problem like yours (just with Excel) was discussed here: ... tml#p55423

BTW, looking at the snapshot you posted, it seems that you are using a pretty old and no longer supported Ranorex 8.1.1. Please update Ranorex with most recent 9.1. It does not make sense to debug problem like yours with obsolete version.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Posts: 2
Joined: Wed Apr 17, 2019 7:59 pm

Re: Actions Slow to Execute in Playback

Post by ariberdy » Mon Jul 08, 2019 4:33 pm

Yes, I've tried all the suggestions in the warning message.
I will upgrade to 9.1.
The Xpath is: /form[@processname='WINWORD']/tree[@class='TreeView20WndClass']

After thinking about this over the weekend, the problem is probably due to my changing the path weight, which Ranorex suggests doing rather than editing many actions in a test suite. The problem I had was that was running a test in Word. When Word generates a new document, it increments the Document Name. So the first name is Document1, the next document is Document2, etc. Of course, Ranorex couldn't find the document because it never new what document name Word was going to generate depending on how long Word had been opened. I was using RegEx to overcome that problem. I can reset the path weight and go back to regular expressions. Thanks.