title: document.getElementById does not return null, but also does not do what I want. No error in javascript console
body: <p>In this instance, I load a single paypal page, in which I am prompted to login.  Once I login, the page changes, through the use of other javascripts on paypal's end.  The address does not change on this transition, nor does the source code in any material way.  I am trying to find a way to have my script wait long enough after the first click to be able to get the element that loads after.  I thought I could do this fairly simple using the following:</p>
  
  <pre><code>document.getElementById("submitLogin").click();
  
  window.onload = function() {
      document.getElementById("continue").click();
  }; 
  </code></pre>
  
  <p>When the script is executed, the first button is clicked, the page transitions, but it won't click the second button that loads.  My javascript console does not report any errors, suggesting that it is able to "get" the element.  Not sure why it won't click it though.</p>