So, I have been testing out FromPath and it works but only attempts to find the element one time and fails if it doesn't find it after 1 attempt...
My code is like this: Element testelement = Ranorex.Core.Element.FromPath(path);
Because it only looks for the element one time and doesn't attempt it more than one time, sometimes it can't find the element... is there any way to make the code search for the element more than one time before giving up and quitting and exiting?
Thank you.
FindPath Question
Re: FindPath Question
Hi,
I'm afraid, I'm not quite sure what's your goal and what's the workflow of your test? Also I'm not used to FromPath method But have you considered using Find/FindSingle method with Duration overload?
I'm afraid, I'm not quite sure what's your goal and what's the workflow of your test? Also I'm not used to FromPath method But have you considered using Find/FindSingle method with Duration overload?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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