is there a way to override the Xpath behaviour so that it is always case insensitive by default?

Best practices, code snippets for common functionality, examples, and guidelines.
ja3ynt
Posts: 7
Joined: Thu Jun 07, 2018 6:20 am

is there a way to override the Xpath behaviour so that it is always case insensitive by default?

Post by ja3ynt » Fri Feb 14, 2020 12:08 pm

is there a way to override the Xpath behaviour so that it is always case insensitive by default?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6027
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: is there a way to override the Xpath behaviour so that it is always case insensitive by default?

Post by odklizec » Fri Feb 14, 2020 12:20 pm

Hi,

I'm afraid, that's currently not possible. You may create a feature request here:
https://uservoice.ranorex.com/forums/15 ... ve-ranorex

As a workaround, you can use regex to make the xpaths case insensitive. But yes, it means you will have to edit every single repo element. For an example of case insensitive xpaths, check this post:
https://www.ranorex.com/forum/how-to-ig ... tml#p41769
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration