case insensitiveness of Find-Methods

Ask general questions here.
jabelshauser
Posts: 55
Joined: Thu Aug 23, 2007 12:00 pm

case insensitiveness of Find-Methods

Post by jabelshauser » Fri Feb 13, 2009 8:12 am

is there a way to make the find-methods case-insensitive ?
There is only the option to search for a sub-string

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: case insensitiveness of Find-Methods

Post by Support Team » Fri Dec 04, 2009 2:35 pm

Yes, you can use regular expressions to achieve case-insensitive searching, e.g.:
// searches case insensitive for a form with title 'My Form'
Form form = Host.Local.FindSingle("form[@title~'^(?i:My Form)$']");
See the following topic in the Ranorex User Guide for more information:
http://www.ranorex.com/support/user-gui ... html#c2463

Regards,
Alex
Ranorex Support Team
.
Image