Hi Team
In my application data is arranged as a form in rows and columns .However these are not structured in table.
How can we identify a specific element using index property ?
Could you please help me on this?
Regards
Faheem
Need Index value of a form element
Re: Need Index value of a form element
Hi,
Unfortunately, without, at very least, a Ranorex snapshot, it’s pretty hard to suggest something reliable. Could you please create and upload one? Thanks.
Unfortunately, without, at very least, a Ranorex snapshot, it’s pretty hard to suggest something reliable. Could you please create and upload one? Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Need Index value of a form element
Please refer the snapshot
We tried to get the index value by using GetattributeText("index" ) method.However its returning the value as null
Please advice
We tried to get the index value by using GetattributeText("index" ) method.However its returning the value as null
Please advice
You do not have the required permissions to view the files attached to this post.
Re: Need Index value of a form element
At first, what you have posted is not a snapshot but screenshot. Please learn how to create the snapshot here:
https://www.ranorex.com/help/latest/les ... shot-files
As for getting the value of an element attribute, use method GetAttributeValueText.
https://www.ranorex.com/help/latest/les ... shot-files
As for getting the value of an element attribute, use method GetAttributeValueText.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Need Index value of a form element
Sorry for posting screenshot instead of Snapshot.
And as suggested, we have tried with GetAttributeValueText("index" ) method also, but still it is returning value as 'null'.
And as suggested, we have tried with GetAttributeValueText("index" ) method also, but still it is returning value as 'null'.
Re: Need Index value of a form element
As mentioned, please post a Ranorex snapshot of the problematic element. Without snapshot, there is not much anyone here can do or suggest.
On the other hand, I don’t think that using index number is the best way to identify elements. In fact, it’s least realiable one
So in my opinion, you will have to find other way to identify the element in question (e.g. using parent/children relationship).
On the other hand, I don’t think that using index number is the best way to identify elements. In fact, it’s least realiable one

Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Need Index value of a form element
Thanks much for the comment.
And we identified that we can get the index value of object using property "childindex".It returned value '57' for the below screenshot.
And yes, it is not that much reliable to use index property, but the AUT does not have proper hierarchy.
And we identified that we can get the index value of object using property "childindex".It returned value '57' for the below screenshot.
And yes, it is not that much reliable to use index property, but the AUT does not have proper hierarchy.