Regular expression for a binded variable in Ranorex Xpath

Best practices, code snippets for common functionality, examples, and guidelines.
theraviz
Posts: 111
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: 7470
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: 111
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

Louy5710
Posts: 1
Joined: Tue Mar 07, 2023 8:10 am

Re: Regular expression for a binded variable in Ranorex Xpath

Post by Louy5710 » Thu Jun 08, 2023 2:09 pm

Hello, i've tried the same, but it doesn't work. I am doing something wrong because I don't know how to apply the solution in my case.
Can anyone help me out? Appreciate it :)