I need to extract a javascript value of a variable from a web page.
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.
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.
Any suggestion is appreciated.