title: VB webkit InvokeMember
body: <p>Having a problem with vb code, basically trying to auto click a button on a webpage with webkit and its not working.</p>
  
  <p>Working code:</p>
  
  <pre><code>'WebKitBrowser1.Document.GetElementById("email").SetAttribute("value",    TextBox1.Text)
  WebKitBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
  </code></pre>
  
  <p>Not working code:</p>
  
  <pre><code>WebKitBrowser1.StringByEvaluatingJavaScriptFromString("Document.getElementById('loginbutton').click()")
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>HRESULT E_FAIL has been returned from a call to a COM component.</p>
  </blockquote>