There is a built-in setting - restartBrowserBetweenTests:
restartBrowserBetweenTests: false,
As the comment says - this slows down your tests - make sure that there is a real reason for restarting the browser between tests. Please note that installation means restarting the browser with each it(), and not describe().
, restart() , - browser, element, $ ..
/ - , cookie /. , , ( , ).
( , promises), . , , .
, , , . , browser - browser.
, / :
multiCapabilities: [
{
browserName: "chrome",
chromeOptions: {
args: ["incognito", "disable-extensions"]
},
}
],