case insensitiveness of Find-Methods

Ask general questions here.
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: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

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: ... html#c2463

Ranorex Support Team