How to get latest index of tabpage or ignore it
Posted: Thu Feb 25, 2016 12:54 pm
Hello all
I'm trying to figure out how to not have to use the code "tabpage[@index='1']" for an element in my repository.
Is there a way to instead of having to use index=1 to use the latest index of the tabpages? Or is there a way to entirely wildcard that piece of code?
I've tried with "?" but that didn't work. I also tried with entirely removing that piece of code and leaving just "//" but also that didn't work during playback.
I'm using Ranorex 5.4.5
Thanks
I'm trying to figure out how to not have to use the code "tabpage[@index='1']" for an element in my repository.
Is there a way to instead of having to use index=1 to use the latest index of the tabpages? Or is there a way to entirely wildcard that piece of code?
I've tried with "?" but that didn't work. I also tried with entirely removing that piece of code and leaving just "//" but also that didn't work during playback.
Code: Select all
container[2]//tabpage[@index='1']/element/container/container/container[1]//container[@automationid='LayoutRoot']/?/?/tabpage[@automationid='General']/container[1]/.......
Thanks