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

exe detected properly on windows 10 path except for the extension being in BLOCK CAPITALS #24

Open
adisciple50 opened this issue Apr 7, 2020 · 5 comments

Comments

@adisciple50
Copy link

Could not find an executable at given path 'C:/Program Files (x86)/phantomjs-1.9.8-windows/phantomjs.EXE'.If this path was not specified explicitly, it is probably a bug in Cliver.

im investigating changing the extension of the phantomjs as a workaround.
ill tell you if this works.

@adisciple50
Copy link
Author

renaming from .exe to C:\Program Files (x86)\phantomjs-1.9.8-windows\phantomjs.EXE
resulted in the same error
Cliver::Dependency::NotFound:
Could not find an executable at given path 'C:/Program Files (x86)/phantomjs-1.9.8-windows/phantomjs.EXE'.If this path was not specified explicitly, it is probably a bug in Cliver.

@adisciple50
Copy link
Author

i can confirm that when i manually launch phantomjs in the command line i do get a command prompt so it is working under the new extension.

@adisciple50
Copy link
Author

rebooted to be dead certain that the changes i made to the phantomjs file extension would be reflected on the path. it doesnt work still. same errors as before. maybe the path to the executable isnt right in windows. returning exe back to its original state and will manually specify if possible.

@adisciple50
Copy link
Author

adisciple50 commented Apr 7, 2020

i noticed that the path specified had spaces in it that needed to be escaped, so i changed the phantomjs path to include no spaces, and manually specified the the executable name, and phantomjs fired into life! i used this code on capybara - people are free to copy and paste for any purpose including commercial reasons free of charge, i modified it from this link here:
https://github.com/teampoltergeist/poltergeist#customization
the code..

Capybara.register_driver :poltergeist do |app|
  Capybara::Poltergeist::Driver.new(app, {phantomjs:'phantomjs.exe',js_errors:false})
end

@adisciple50
Copy link
Author

my path has this on ("C:\phantomjs-1.9.8-windows") now.
and the phantom js is in that folder. i think the important bit is that no characters that need escaping should be on your path for now. This needs fixing but the workaround is now public. And thankyou God. he wouldnt just let me abandon it and use selenium instead! probably for the sake of this very report!

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

1 participant