title: How to extract a javascript variable value from a web page?
body: <p>I need to extract a javascript value of a variable from a web page.</p>
  
  <p>I think there is a way if I can make nightmarejs to go to the page, open the dev tool, type in the variable to the javascript console and return the output.</p>
  
  <p>I'm comfortable with making nightmarejs client to go to the page, click necessary buttons et cetera. But, I don't know how to type in the console and return the output, if possible.</p>
  
  <p>Any suggestion is appreciated.</p>