s21_shankar
6 years agoNew Contributor
Perform an action stored in a variable over an object
Imagine the below scenario.
Set myObj = Browser.Page.Obj
Var myAction = "click"
I want to perform the click action in the below fasion
"myObj .myAction "
Can someone let me know how this can be done. I have tried to use Eval as well but no luck.
And if myObj is an object, like in your example, then something like this should work:
eval(myObj.FullName + '.' + myAction)