Hi,
I am using Ranorex 2.1.2 version
I want to know how can we search a form, control and element on basis of substring.
I know about Ranorex 1.5, I can use ‘SearchMatchMode’.
Thanks,
Sachin
How to query for a Form using substring with Ranorex 2.1.2
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to query for a Form using substring with Ranorex 2.1.2
Hi cancerion,
use the RxPath regular expression functionality to search for substrings like:
http://www.ranorex.com/support/user-gui ... html#c1791
Additional info on regular expressions can be found on MSDN:
http://msdn.microsoft.com/en-us/library/az24scfc.aspx
Regards,
Christian
Support Team
use the RxPath regular expression functionality to search for substrings like:
// e.g. Form Title: Documentation string subStr = "menta"; string path = "/form[@title~'"+ subStr +"']"; Element elem = Host.Local.FindSingle(new RxPath(path));Please read the Ranorex User Guide topic on regular expressions in RxPaths:
http://www.ranorex.com/support/user-gui ... html#c1791
Additional info on regular expressions can be found on MSDN:
http://msdn.microsoft.com/en-us/library/az24scfc.aspx
Regards,
Christian
Support Team
Re: How to query for a Form using substring with Ranorex 2.1.2
It works for me.
Thanks,
Thanks,