title: How to press a button in vb.net web-browser
body: <p>Hello I'm working on a easy account menu for signing into steam via web-browser. I'm trying to make a button auto sign in the person. I'm able to have the button auto fill the password and the username, but the submit button will not work. </p>
  
  <p>Here is the link to steam's login: <a href="https://steamcommunity.com/login/home/?goto=" rel="nofollow noreferrer">Here</a></p>
  
  <p>Here is the element view of the button. Also note that it looks like it branches to maybe some kind of event?
  <a href="https://i.stack.imgur.com/jSOir.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jSOir.png" alt="enter image description here"></a></p>
  
  <p>I'm kind of stumped on how to approch this. Is there a way I can use web-console to submit it that way? Here is what I got so far:</p>
  
  <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      WebBrowser1.ScriptErrorsSuppressed = True
  
      WebBrowser1.Document.GetElementById("input_username").SetAttribute("value", TextBox1.Text)
  
      WebBrowser1.Document.GetElementById("input_password").SetAttribute("value", TextBox2.Text)
  
      WebBrowser1.Document.All("login_btn_signin").InvokeMember("click")
  
  End Sub
  </code></pre>