protractor-cucumber icon indicating copy to clipboard operation
protractor-cucumber copied to clipboard

TypeError: protractor.wrapDriver is not a function

Open ConsultDarryl opened this issue 8 years ago • 3 comments

When you run "cucumber-js". If you see this error:

TypeError: protractor.wrapDriver is not a function at new World (C:\Repos\protractor-cucumber\lib\index.js:27:31) at nextTickCallbackWith0Args (node.js:420:9)

This means you are using protractor version 4.0.0.

To fix... open package.json and change "protractor": ">=1.6.0", to "protractor": "^3.2.0",. Save the file. Run npm install

ConsultDarryl avatar Jul 22 '16 10:07 ConsultDarryl

Protractor is now 4.0.3, I'd love to see a way to make it compatible with cucumber. If anyone has an idea please share it

floribon avatar Aug 10 '16 09:08 floribon

I figured out how to support protractor 4 and created a PR if anyone is interested: https://github.com/AndrewKeig/protractor-cucumber/pull/47

floribon avatar Sep 04 '16 22:09 floribon

@AndrewKeig could you merge #47? Would be of great to have the newer protractor versions working.

mobidev111 avatar Feb 14 '17 10:02 mobidev111