Are there some ways to control/configure rxpath generate algorithm?
I don't know how to explain that better, may be on examples it will most understandable.
because there is good chance that developers will rename button from "OK" to "Ok", and I would like to have automation code working well with both options.
There is only single text element after element[@controlname='txtDealName'], and it has no real meaning in my application.
That's a little difficult because the Ranorex Recorder recognizes the controls, which are used and it is not possible to get only the parent element from the control.
For example, if you use the Recorder to type some words into a text box, Ranorex recognizes the text box itself.
I would suggest to use other attributes in order to recognize the elements. The settings for that can be found in the Path weights editor.
Please read the blog "Automated Testing and Dynamic IDs" on our website in order to get more information how to edit path weights.