Skip to content
New issue

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

Quick Start Example Failed #2

Open
rawbin- opened this issue Apr 18, 2016 · 2 comments
Open

Quick Start Example Failed #2

rawbin- opened this issue Apr 18, 2016 · 2 comments

Comments

@rawbin-
Copy link

rawbin- commented Apr 18, 2016

With Quick Start http://dalekjs.com/index.html, I got this error,

>> ERROR: dalek-driver-phantomjs: Binary not found: null

and the driver dalek-driver-phantomjs does not in npm yet

@JMLX42
Copy link

JMLX42 commented Oct 22, 2016

Same problem here.
Also happens with dalekjs-canary.

@fr33vps
Copy link

fr33vps commented Nov 10, 2016

i have the same issue, but i fix it.
what you need to do is the following: (windows method only :/)

go to the following directory
yourTestLocation\node_modules\phantomjs\lib

you will find file named phantom.js & folder named phantom

now rename the original phantom.js file as phantom.js.backup for example
and create a new file phantom.js and paste the following code

//CODE BEGIN
var path = require('path');
exports.path = process.platform === 'win32' ?
path.join(__dirname, 'phantom', 'phantomjs.exe') :
path.join(__dirname, 'phantom', 'phantomjs');
//CODE END

and save it
now download the latest version of phantomjs from the official website extract it and put the phantomjs.exe inside the phantom folder
i guess that is exist and i don't know if it will work with this method or not.
so replace it with the new version

now run the test file that exist in the dalekjs page to make sure that the patch working :)
you will see something like that:
#output:

C:\developerArea#JS\jsWorkZone>dalek dalekTEST.js
Running tests
Running Browser: PhantomJS
OS: windows 8 32bit
Browser Version: 1.9.2

RUNNING TEST - "Page title is correct"

OPEN http://google.com

  • TITLE It has title
  • 1 Assertions run
  • TEST - "Page title is correct" SUCCEEDED

1/1 assertions passed. Elapsed Time: 6.71 sec

PS: i get tge fix code from the chromedriver.js file inside node_modules\dalek-browser-chrome\lib directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants