by Support Team » Tue Oct 19, 2010 2:48 pm
Hi,
Of course you can use the character "*" in your RxPath instead of form or control. You have just to use more attributes inside the brackets, then the RxPath will identify your element with the expected attributes. The more attributes you use inside the brackets, the more robust will be your RxPath. In your example I would suggest you following
/*[@title='caption']/button[@text='button' and @controlname='WinformsButton'] for example. Also a possible solution would be to search your form/control/container as follow:
/*[@title='caption']/.//button[@text='button' and @controlname='WinformsButton']
If you use the RxPath above, Ranorex is searching the whole element for this item.
Regards,
Peter
Ranorex Team