title: How to log into a website with VBS script when the sign in button lacks an ID
body: <p>I'm trying to use a simple VBS script to log into a forum and I'm able to enter the username and password using the IDs of those field, but I'm unable to have it click sign in button. </p>
  
  <p>This is all the information I can find to identify the button:</p>
  
  <pre><code>&lt;button type="submit" class="ipsButton ipsButton_primary" tabindex="2" accesskey="s" role="button"&gt;Sign In&lt;/button&gt;
  </code></pre>
  
  <p>This is my script so far:</p>
  
  <pre><code>set shell = CreateObject("Shell.Application")
  shell.Open "https:/forums/index.php?/login/"
  WScript.Sleep (3000)
  .getElementByID("Auth").value = "username"
  .getElementByID("Password").value = "password"
  .getElementsByClassName("ipsButton ipsButton_primary")(0).Submit
  </code></pre>
  
  <p>Thanks in advance</p>