Ram Pasala
Jul 23, 2017 · 1 min read

First thing you should only use latest “protractor-cucumber-framework 3.1.2”, as cucumber 2.0 which is used by my framework only supports that.

Second thing is that, for timeout error I would need more info.Ideally “restartBetweenBrowserTests” restarts the browser after every “Step Definition” in cucumber . As it restarts after every “it” block if you use Jasmine farmework. So that is the reason you are seeing so many browsers open up in your case.

So I would suggest add a “before” or “after” hook and call “browser.restart()” method which protractor provides. Something like -

After(async function() {

await browser.restart();

})

Note: I have used async fn syntax, you could use promises as well. The above hook would start before/after browser instance every scenario. Similarly you could user beforeFeature/afterFeature for starting browsers before features.

And yeah sorry for the late reply, I try my best to answer user questions. You could always raise a StackOverFlow question , you would certainly get an answer there.

Cheers!

    Ram Pasala

    Written by

    That Software Engineer, 90's Kid, Tech Addict, Thinker, INFP-T personality, Snooker Fan, Old Rock Lover!