im writing a GUI automation class to interact with objects on a web page. I know there are both open source tools and frameworks that already do this but im trying out a side project for fun.

I will be doing both Java and C# obviously here we can just discus c#

My question is: if I have a web page open and it has 1 button on it with lets say an id="start_button". I can get that value from a tool like firebug.

what would the code look like to find an object in the dom with an id="start_button"


I cant wrap my head around it for some reason and don't see a lot of Google help on the matter.


thanks