Giter VIP home page Giter VIP logo

phantomjs-server's People

Contributors

daxsorbito avatar eliasgs avatar eugeneware avatar morphar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phantomjs-server's Issues

Freezes after copying phantom js from extracted folder

Hello, I'm trying to install phantomjs-server but I'm always beign stucked.

When I run:

npm install phantomjs-server

npm install freezes when this line is printed:

Copying extracted folder /var/folders/rq/n3d887yn16gd_82s1yll0dk40000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip-extract-1457104670057/phantomjs-1.9.7-macosx -> /<my_project_folder>/node_modules/phantomjs/lib/phantom

But if I look inside <my_project_folder>/node_modules/phantomjs/lib/phantom the executable is there.

There is no posibility to change phantomjs server port from config

According to documentation:
You only need to replace this:
var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
var server = new SeleniumServer('bin/selenium-server-standalone.jar', { port: 4444 });
server.start();

With this:
var phantom = require('phantomjs-server');
phantom.start();

It's not possible to change phantomjs server port from config because it's hardcoded in index.js

Object #<Promise> has no method 'withCapabilities'

Hi,

Please see below error log.

Has anyone encountered this problem? If I would run it on my windows machine I don't get this error but if I would run it on a linux box, I'm getting this problem.

Anyone has any idea on this problem?

/server/tests/start-phantomjs.js:16
withCapabilities({
^
TypeError: Object # has no method 'withCapabilities'
at processBuild (/server/tests/start-phantomjs.js:16:13)
at Object. (/server/tests/start-phantomjs.js:21:5)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3

this is the a code snippet that we have in the start-phantomjs.js

   var driver = new webdriver.Builder().
        usingServer(phantom.address()). // This part is important!
        withCapabilities({
            "browserName": "phantomjs"
         }).build();

README.md startup server

In the documentation it says:

  var driver = new webdriver.Builder().
  usingServer(server.address()). // This part is important!
  withCapabilities({ "browserName": "phantomjs" }).
  build();

Shouldn't it be:

  var driver = new webdriver.Builder().
  usingServer(phantom.address()). // This part is important!
  withCapabilities({ "browserName": "phantomjs" }).
  build();

Server doesn't exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.