Hi, I don't know if the following is even possible but here goes:
I have the following repository structure
myContainer -> myButton1
-> myButton2
-> myButton3
I was hoping to pass in a string into a method, where the string is the name of the repo item in the repository, then use it as a repo path and call method.
So my method would be like this:
public void clickButton(string buttonName)
{
myCcontainer.buttonName.Click();
}
And I was hoping to call the method like this:
clickButton(myButton1);
Is there a way to do this?