laurentj / slimerjs

A scriptable browser like PhantomJS, based on Firefox
http://slimerjs.org
Other
3k stars 258 forks source link

SlimerJS hangs having upgraded to Firefox 58 #675

Closed davidenglishmusic closed 6 years ago

davidenglishmusic commented 6 years ago

Versions

Steps to reproduce the issue

var webpage = require('webpage').create();
webpage.viewportSize = {width: 1280, height: 1024};
webpage
  .open('https://google.com')
  .then(function(){
    webpage.render('test.png', { onlyViewport: false });
    slimer.exit()
  });

Actual results:

With --debug=true

2018-01-23T23:52:38.227Z [DEBUG] Gecko version: 58.0
2018-01-23T23:52:38.227Z [DEBUG] script args: app.js
2018-01-23T23:52:38.228Z [DEBUG] Configuration: debug=true
2018-01-23T23:52:38.228Z [DEBUG] Configuration: Script=/Users/me/code/app.js
2018-01-23T23:52:38.228Z [DEBUG] Configuration: workingDirectory=/Users/me/code
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: SyntaxError: test for equality (==) mistyped as assignment (=)?
JavaScript strict warning: coffee-scripts.js, line 8: ReferenceError: reference to undefined property "fs"
JavaScript strict warning: resource://slimerjs/slCookiesManager.jsm, line 16: ReferenceError: reference to undefined property "nsICookieManager2"

Script Error: Component returned failure code: 0x80570018 (NS_ERROR_XPC_BAD_IID) [nsIJSCID.getService]
       Stack:
         -> resource://slimerjs/slCookiesManager.jsm: 15
         -> resource://slimerjs/slimer-sdk/phantom.jsm: 11
         -> resource://slimerjs/slLauncher.jsm: 485 (in function load)
         -> resource://slimerjs/slLauncher.jsm: 122 (in function launchMainScript)
         -> chrome://slimerjs/content/slimerjs.js: 20 (in function startup)
         -> chrome://slimerjs/content/slimerjs.xul: 1 (in function onload)

Temporary workaround

Downgrade to Firefox 57.0.4 - available at https://ftp.mozilla.org/pub/firefox/releases/57.0.4/mac/en-US/

xaiborweb commented 6 years ago

@davidenglishmusic Hello friend, I have the same problem but with ubuntu 16.04 I am a newbie in this and I have only been able to install firefox as well. apt-get install firefox but in this way install version 58.02 and according to your comment it seems that it has no compatibility so I am trying to install firefox 57 on my vps ubuntu 16.04 without graphical environment but not achieved and could share the commands to install previous versions of firefox in linux ? Thank you ;)