We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong use of WebPage#evaluateAsync
page.evaluateAsync(function () { window.callPhantom({ msg: "hello" }) }, function (err, data) { if (err) { console.log(err); } console.log(data); });
The text was updated successfully, but these errors were encountered:
I found that calling .toString() on the first function being passed in causes this to work partially. However, the callback function receives no data.
.toString()
page.evaluateAsync(function () { window.callPhantom({ msg: "hello" }) }.toString(), function (err, data) { if (err) { console.log(err); } console.log(data); });
Sorry, something went wrong.
Is is still a problem? Is it related to this project? Did you tried to run your script directly in phantomjs from CLI?
Closing - timed out.
No branches or pull requests
The text was updated successfully, but these errors were encountered: