Wild card within object repository

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
EugeneF
Posts: 63
Joined: Fri Jul 29, 2011 12:26 am

Wild card within object repository

Post by EugeneF » Mon Sep 26, 2011 11:28 pm

Is it possible to use wild card with Object Repository?
If so, how to do it?
I tried ".*" with no success.

I had -

cell[@accessiblename='Address Row 6']


and I changed it for -

cell[@accessiblename='Address Row .*']

Anything wrong?

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: Wild card within object repository

Post by sdaly » Tue Sep 27, 2011 8:15 am

Change the = to ~ to switch to regex mode....

EugeneF
Posts: 63
Joined: Fri Jul 29, 2011 12:26 am

Re: Wild card within object repository

Post by EugeneF » Wed Sep 28, 2011 6:34 pm

Can you, please, give me an example? In my case how it should be?

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Wild card within object repository

Post by Ciege » Wed Sep 28, 2011 7:03 pm

See this page http://www.ranorex.com/support/user-gui ... xpath.html and scroll to the RanoreXPath with Regular Expression section.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

EugeneF
Posts: 63
Joined: Fri Jul 29, 2011 12:26 am

Re: Wild card within object repository

Post by EugeneF » Fri Sep 30, 2011 6:42 pm

Hi Ciege,

Thank you very much for your great help!!!