title: Is it possible to execute a function that is written from the javascript of a website with nightmare? Or any other way?
body: <p>You know when you visit a page in a website and view the source code, sometimes you see an element execute a javascript function? For example:</p>
  
  <pre><code>&lt;button type="button" id="chocolate" onclick="EditShipment()"&gt;Click me&lt;/button&gt;
  </code></pre>
  
  <p>Can I use nightmare to visit this page and execute EditShipment() ? And if so, is it possible to pass in our own arguments to that function's argument?</p>