Is it possible to pass variables in a page.evaluate in my case below?
function myFunction(webpage, arg1, arg2){ var page = require('webpage').create(); page.viewportSize = { width: 1920, height: 1080 }; page.open(webpage, function (status){ if (status == 'success') { page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js", function(){ page.evaluate(function(){ arg = arg1 + arg2; console.log(arg); }); }); } else { phantom.exit(); } }); } I tried several methods found on the internet but nothing actually impossible to get to its variables.
Thank you in advance for your help :)