Variables in index

Ranorex Studio, Spy, Recorder, and Driver.
KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Variables in index

Post by KapacRus » Wed Apr 04, 2012 9:02 am

Hello!
I have a problem with access to an element in the sample. Suppose we have xpath /treeitem[@accessibledefaultaction='Expand'] which gives us two elements. To access the first, we can use /treeitem[@accessibledefaultaction='Expand'][1] but I want to use variables.
/treeitem[@accessibledefaultaction='Expand'][$number]
/treeitem[@accessibledefaultaction='Expand'][@index=$number]
Why is this option not working?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Variables in index

Post by Support Team » Thu Apr 05, 2012 4:21 pm

Hi,
KapacRus wrote:Why is this option not working?
Currently this is not possible to do, but with Ranorex 3.3 we implement a bunch of new RxPath features and then you should be able to do exactly what you want.

Regards,
Peter
Ranorex Team

KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Re: Variables in index

Post by KapacRus » Fri Apr 06, 2012 5:36 am

And on what date scheduled for release 3.3?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Variables in index

Post by Support Team » Fri Apr 06, 2012 7:07 am

Hi,
KapacRus wrote:And on what date scheduled for release 3.3?
we cannot tell you an exact date now, but it should be available mid of Q2.

Regards,
Tobias
Ranorex Team

KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Re: Variables in index

Post by KapacRus » Fri Apr 06, 2012 7:51 am

Thanks for the quick answers!