You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The legacy PhantomJS uses a rather weird convention for evaluateJavaScript function - it asks the script input to be wrapped around function() {}, or the script will not be executed at all. For example:
On the other hand, SlimerJS correctly runs the script input without having to wrap them in function() {}, and in fact it correctly reports syntax error.
And a big thank you to everyone involved in the development of SlimerJS. PhantomJS left too much legacy in the world of scriptable headless browser, it's very challenging to migrate large chunk of PhantomJS app to chrome headless, yet SlimerJS fills the gap incredibly well!
The text was updated successfully, but these errors were encountered:
versions
Steps to reproduce the issue
The legacy PhantomJS uses a rather weird convention for
evaluateJavaScript
function - it asks the script input to be wrapped aroundfunction() {}
, or the script will not be executed at all. For example:http://phantomjs.org/api/webpage/method/evaluate-java-script.html
On the other hand, SlimerJS correctly runs the script input without having to wrap them in
function() {}
, and in fact it correctly reports syntax error.Please note down this difference in function doc or consolidated differences.
And a big thank you to everyone involved in the development of SlimerJS. PhantomJS left too much legacy in the world of scriptable headless browser, it's very challenging to migrate large chunk of PhantomJS app to chrome headless, yet SlimerJS fills the gap incredibly well!
The text was updated successfully, but these errors were encountered: