Micro Focus QTP (UFT) Forums
runtime changing the Name of WpfButton in associated repository - 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: runtime changing the Name of WpfButton in associated repository (/Thread-runtime-changing-the-Name-of-WpfButton-in-associated-repository)



runtime changing the Name of WpfButton in associated repository - cbunsen - 11-12-2008

Can it be done? Im using QTP9.5, with Wpf addins and .net 3.5 addin, and all patches. The associated tsr has a single WpfButton, and i need to change its name, and maybe a few othe properties before its click . While the test is running on that page. Assume its ONE Action with one wpfbutton,
as I have multiple actions. I also at this time have a collection of all runtime objects on the page. Could I (is there a wayjust "click" on the index of objects?

ADDED: i can manuallly add the property(ro) OF THE COMAND PROP to the TO object ... that kinda works, but I HAVE TO edit and add iit to evry single test obct,, way slow. Any heel- or an I cutting first ground here?

It work on all languages,,,,
cb