Micro Focus QTP (UFT) Forums
Parameterizing Method - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Parameterizing Method (/Thread-Parameterizing-Method)



Parameterizing Method - manojith1984 - 01-29-2009

Hi All,
Could anybody help me out to parameterize an object's method. Eg.
Code:
Browser("...").Page("...").Frame("...").Webedit("...").Set "abc"
here in an application the method "Set" changes dynamically for the same object. for example when i run the first time it is
Code:
Browser("...").Page("...").Frame("...").Webedit("...").Set "abc"

if i am running the next time i am getting an error stating the object does not support the method. then i come to know that the method has changed from "Set" to "Type"

Code:
Browser("...").Page("...").Frame("...").Webedit("...").Type "abc"
So my Question is can we parameterize the methods???? so that i can pass the 'methods of an object' dynamically


RE: Parameterizing Method - manojith1984 - 01-29-2009

Hi Friends,
Could you please help me out in solving the above mentioned issue...