0

I have specs for subscriptions:

  • with Facebook
  • without Facebook

For specs with Facebook subscription I have to turn on restartBrowserBetweenTests: true to clear browser cache from previously entered Facebook emails and passwords. For other subscriptions I have to turn restartBrowserBetweenTests off manually, every time. Is there any way in Protractor to restart browser only between certain specs? Thanks!

cramopy
  • 3,459
  • 6
  • 28
  • 42
Eduard
  • 1
  • 1

1 Answers1

0

One option/workaround would be to have 2 different protractor configs with different restartBrowserBetweenTests values and suites/specs defined.

Community
  • 1
  • 1
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
  • Thanks alecxe, I thought about it, I will do so I will not find any other solution. As for me it is not very comfortable. I also tried to use this code, but without any success: afterEach(function(){ browser.restart(); }); – Eduard Mar 28 '16 at 10:07