Micro Focus QTP (UFT) Forums

Full Version: Can we set ordinal identifier at runtime
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Can anyone tell me if we can set "index" ordinal identifier using SetToProperty??

If possible please share the syntax

Thanks
Vivek
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.