Using webdriverIO and I am trying to close / quit chrome browser between scenarios. Here is what I have in the conf file:
afterScenario: function (scenario) {
console.log("afterScenario quit browser");
browser.Close();
;
},
Is there a way to close browser or chromedriver after each scenario with wdio?
Thanks
Each WebdriverIO process opens a new session (
browser.sessionId). Thus, the reload() function is what you are probably looking for.!Note: For people running the newer
wdio-v5version, the corresponding API command is reloadSession.