Forum Discussion

s21_shankar's avatar
New Contributor
6 years ago

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 thi...
  • AlexKaras's avatar
    6 years ago

    And if myObj is an object, like in your example, then something like this should work:

    eval(myObj.FullName + '.' + myAction)