RanoreXPath with Regular Expression

Ask general questions here.
alearava
Posts: 3
Joined: Sat Oct 20, 2012 12:04 am

RanoreXPath with Regular Expression

Post by alearava » Fri Nov 30, 2012 1:20 am

Hi Guys!!
I need your help
I work with an application for casinos, and I have the same label with different name in each casino...
For example
Casino 1
//span[#'ctrlWithdraw_ctrlWithdrawMethods_ctrlConfirmationForm_transactionStatus']
Casino 2
//span[#'ctrlWithdraw_ctrlRegisteredAccounts_ctrlConfirmationForm_transactionStatus']

Both elements end with ctrlConfirmationForm_transactionStatus' but I good results to identify this element using Regular Expression. I read this page http://www.ranorex.com/support/user-gui ... html#c2463 but the search doesn't works.
Can you give me an real example please.

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

Re: RanoreXPath with Regular Expression

Post by Support Team » Fri Nov 30, 2012 10:37 am

Hello,

Please try out the following expression:
//span[@id~'.*ctrlConfirmationForm_transactionStatus$']

Regards,
Markus (T)
.
Image