phuang07
phuang07

Reputation: 981

How to setup cucumberjs with phantomjs

Anyone has experience for setting cucumberjs with phantomjs? Any related resource will be helpful. Thanks.

Upvotes: 1

Views: 3049

Answers (4)

mrded
mrded

Reputation: 5290

Cucumber.js example running tests in PhantomJS https://github.com/patrickarlt/cucumberjs-example

Upvotes: 0

Sajesh
Sajesh

Reputation: 33

npm -g install phantomjs

var client= webdriverjs.remote({ desiredCapabilities: {browserName: 'phantomjs'},logLevel:verbose'});

Upvotes: 1

Daniel Wabyick
Daniel Wabyick

Reputation: 169

There is a library Hardy.io that uses Cucumber to drive Selenium based CSS tests - http://hardy.io/.

This doesn't actually run Cucumber within PhantomJS, but rather runs Cucumber tests within Node, and uses Selenium Webdriver for introspection of values.

Upvotes: 0

jbpros
jbpros

Reputation: 1657

There are not many resources out there about it yet. A few people have been using Phantomjs with Cucumber.js and there are some discussions about it on the Cukes list.

HTH.

Upvotes: 0

Related Questions