Micro Focus QTP (UFT) Forums
Can we set ordinal identifier at runtime - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Can we set ordinal identifier at runtime (/Thread-Can-we-set-ordinal-identifier-at-runtime)



Can we set ordinal identifier at runtime - qtplearner88 - 07-30-2013

Hi,

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

If possible please share the syntax

Thanks
Vivek


RE: Can we set ordinal identifier at runtime - Ankur - 07-31-2013

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.