Hi Ranorex Team,
I just realized that the TryFindSingle returns the first element found or false if no element is found.
I assumed the function to return false if it failed to find a single (unique) element and return TRUE ONLY if it finds a single(unique) element. So, for me this function is actually TryFindFirst and NOT TryFindSingle.
For example,
if we have two forms with names abc and abcd,
tryfindsingle - /form[@name~'abc.*']
will return true and will identify the first form found. This is not I would have expected from the method. The problem is I would not know in somecases, if the incorrect input was selected using tryfindsingle with regular expressions / wildcards.
Hope you understood my concern. Any inputs / thoughts are appreciated.
Let me know if you need more details.
Thanks and Regards,
Aakash