Micro Focus QTP (UFT) Forums
Is it possible to Change Logical name of the Object and object properties through QTP - 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: Is it possible to Change Logical name of the Object and object properties through QTP (/Thread-Is-it-possible-to-Change-Logical-name-of-the-Object-and-object-properties-through-QTP)



Is it possible to Change Logical name of the Object and object properties through QTP - kotaramamohana - 05-10-2011

Hi Friends,

Is it possible to Change Logical name of the Object and object properties through QTP during the execution and save that object repository.
Ex: Logical name is ORG FOR HP15(need to change to ORG FOR HP16) it might be Link or WebElement
innertext: ORG FOR HP15(need to change to ORG FOR HP16)



Could you please share your thoughts.


RE: Is it possible to Change Logical name of the Object and object properties through QTP - supputuri - 05-10-2011

Hi,

why do you want to change the logical name of the object, however you can change the Innertext in runtime using SetToProperty method and use the same object for different links/webelements.
Let me know if you want any info on this.