c# webrowser act on button click with getelementbyid
Hey i am trying to make a browser game bot, but i can't seem to get the program to click a "link" with getelementbyid :/ is should happen when i click a button.
here is the code:
private void button1_Click(object sender, EventArgs e)
{
var flyplass = webBrowser1.Document.GetElementById("flyplass");
webBrowser1.Document.GetElementById("flyplass");
flyplass.InvokeMember("Click");
}