I am new to c-sharp. I was asked to retrieve the selenium commands which are present in the html in c#. I mean to say if we type username as UserName: testUser we get in selenium IDE as
command=type
target = xpath="/html..blah blah"
value= testUser
Now I have got this information in my C# as I used C# and HTML Parsing. Now I want to execute this in the form of switch.
switch(command)
{
case "type":
selenium.Type(target,value);
break;
// and so on..
case "click":
...........
break;
}
So in this do I need delegates or some concepts of C# to dynamically execute commands ? Please reply. I am new to c#. I hope my question is clear.