title: javascript setTimeout - in chrome console doesn´t work
body: <p>I want to click on all the objects on the web page.
  Using script in google chrome console.
  But I want to wait a moment after each click.</p>
  
  <p>The following script works, but everything happens immediately without delay.
  How to write the script to make the delay work?</p>
  
  <pre><code>javascript:var inputs = document.getElementsByClassName('_54k8 _56bs _56bt');
   for(var i=0; i&lt;inputs.length;i++) {
     setTimeout(  inputs[i].click() , 6000);
  }
  174
  ErrorUtils caught an error: "Function.prototype.apply was called on undefined, which is a undefined and no...". Subsequent errors won't be logged; see https://fburl.com/debugjs.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/cl5j3.jpg" rel="nofollow noreferrer">screenshot</a></p>