Regular expression for a binded variable in Ranorex Xpath

Best practices, code snippets for common functionality, examples, and guidelines.
theraviz
Posts: 75
Joined: Sun Apr 14, 2019 9:46 am

Regular expression for a binded variable in Ranorex Xpath

Post by theraviz » Wed Mar 04, 2020 7:02 am

Hi,

I have a variable defined in my location in which there will by dynamic data in every run. I am using this variable in my ranorex xpath to identify as the inner text of some control.

I want to make this variable data to be case insensitive. ie even if the variable data is capital or small, it should be acceptable as the innertext and perform action. Please help

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

Re: Regular expression for a binded variable in Ranorex Xpath

Post by odklizec » Wed Mar 04, 2020 7:11 am

Hi,

I think this post (last example in it) should help you...
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

theraviz
Posts: 75
Joined: Sun Apr 14, 2019 9:46 am

Re: Regular expression for a binded variable in Ranorex Xpath

Post by theraviz » Wed Mar 04, 2020 10:07 am

Thanks a lot. It worked