Open barbogast opened 9 years ago
I asked the same question on Stackoverflow and got the answer that you shouldn't expect the forks to be quitted automatically.
Oh, all right, I didn't see your question. But based on the comment linked above and the commit implementing multiple browser it looks like the forks should quit automatically.
For example here: https://github.com/angular/protractor/commit/0bbfd2b6d38392938781d846ad37b5a0fd964004#diff-f379c4bb1bd89197b17ba4cd53cd8958R23
If it is indeed required to call quit() explicitly maybe it should be mentioned here: https://github.com/angular/protractor/blob/master/docs/browser-setup.md#using-multiple-browsers-in-the-same-test
@Koblaid I think they should be quitted automatically, so this issue is relevant so the developer perhaps fix this.
I agree that we should find a way to have the forked browsers quit cleanly/automatically
Calling
browser.forkNewDriverInstance()
without callingquit()
on the new instance afterwards throws an ECONNREFUSED error when protractor exits.Example:
The error:
Calling quit() is not required, right? At least it says so here: https://github.com/angular/protractor/blob/9891d430aff477c5feb80ae01b48356866820132/spec/interaction/interaction_spec.js#L9