Micro Focus QTP (UFT) Forums

Full Version: Parameterizing Method
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Hi Friends,
Could you please help me out in solving the above mentioned issue...