Posts: 42
Threads: 17
Joined: Mar 2012
Reputation:
0
07-30-2013, 07:40 PM
Hi,
Can anyone tell me if we can set "index" ordinal identifier using SetToProperty??
If possible please share the syntax
Thanks
Vivek
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
07-31-2013, 12:33 AM
I don't think you can do that. As I understand, ordinal identifiers are not part of the 'Learned' object properties that QTP uses to identify an object. The order of identification is Learned Desc then Smart Identification and then Learned Desc + Ordinal Identifier. I don't think QTP can Set such a property value at run time.
Probably it's the same reason you can't parameterize ordinal identifier.
Easiest way out is to use DP in such a case.
Others please chime in, why you think/don't think it's possible.