Johnny Landmark

Johnny Landmark

  • NA
  • 1
  • 1.3k

c# webrowser act on button click with getelementbyid

May 22 2014 2:33 PM
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");
        }



Answers (1)