marcodave / protractor-http-client

HTTP Client library to use in protractor tests
MIT License
6 stars 5 forks source link

TypeError: protractor.promise.controlFlow is not a function #9

Open davedalselv opened 5 years ago

davedalselv commented 5 years ago

My project can't compile because of the following error:

[dev] [14:14:13] E/launcher - Error: TypeError: protractor.promise.controlFlow is not a function
[dev]     at Object.<anonymous> (C:\Protractor\magazin-admin-cucumber\node_modules\protractor-http-client\lib\http-client.ts:9:72)
[dev]     at Module._compile (module.js:652:30)
[dev]     at Object.Module._extensions..js (module.js:663:10)
[dev]     at Module.load (module.js:565:32)
[dev]     at tryModuleLoad (module.js:505:12)
[dev]     at Function.Module._load (module.js:497:3)
[dev]     at Module.require (module.js:596:17)
[dev]     at require (internal/module.js:11:18)

Versions:

"protractor": "^6.0.0",
"protractor-http-client": "^1.0.4",
"typescript": "^3.3.4000",
marcodave commented 5 years ago

hi! thanks for the submission. I checked the Protractor 6.0.0 changes, Apparently they got rid of the controlFlow mechanics from WebDriver, relevant commit from protractor

I see two possible solutions, if you really need the http-client