how can I increase the time to find and element

Ask general questions here.
rsudhak
Posts: 118
Joined: Fri Jan 04, 2019 1:38 pm

how can I increase the time to find and element

Post by rsudhak » Thu Jun 13, 2019 3:04 pm

Ranorex finds the element, but takes too long, due to which it throws this error: Failed to find item 'Project'.
No element found for path 'element[@automationid='MainWindowTitleControl']//button[@automationid='ID_Open']/picture[@automationid='mImage' and @visible='true']' within 30s.

Any idea as how this could be sorted

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

Re: how can I increase the time to find and element

Post by odklizec » Thu Jun 13, 2019 3:20 pm

Hi,

Could you please post a Ranorex snapshot (NOT screenshot) of the problematic element? Without snapshot, it's almost impossible to suggest something reliable. Generally speaking, you may need to improve the xpath? Of course, you can increase the search timeout value of given element in repository. But I think you should simply improve the xpath. I'm only rarely modifying search timeouts in repo. Another possibility is to use WaitFor Exists action, which pauses the test execution, until a certain element is available.
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