title: How to configure Protractor to use Cucumber
body: <p>As of <a href="http://ng-learn.org/2014/03/Protractor-0-20-1/">0.20.1</a> Cucumber is now fully supported in Protractor but I'm battling to find any documentation on how to configure it properly. Any idea how you would setup world.js? </p>
  
  <p>I have found this example at <a href="https://github.com/whyvez/angular-cucumber-example/blob/master/features/support/world.coffee">https://github.com/whyvez/angular-cucumber-example/blob/master/features/support/world.coffee</a> but I'm not sure if you would still need to specify all the require modules and configuration as the protractor config file (referenceConf.js) would have all this info already. </p>
  
  <pre><code>assert = require 'assert'
  path = require 'path'
  
  protractor = require 'protractor'
  webdriver = require 'selenium-webdriver'
  
  driver = new webdriver.Builder().
    usingServer('http://localhost:4444/wd/hub').
    withCapabilities(webdriver.Capabilities.chrome()).
    build()
  
  driver.manage().timeouts().setScriptTimeout(100000)
  
  ptor = protractor.wrapDriver driver
  
  class World
    constructor: (callback) -&gt;
      @browser = ptor
      @By = protractor.By
      @assert = assert
      callback()
  
  module.exports.World = World
  </code></pre>