CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

how can i close the browser for the failed case

Open tony204 opened this issue 10 years ago • 2 comments

@DavertMik run the below case: I.amOnPage('/''); I.click('button'); I.see(); // this case will failed,

i use the webdriverIO and set remote host ,set the browser=chrome.
when i run 100 cases, 90 failed. On the remote machine, it will open many of browser and can't close automatic.

Can you resolve?

tony204 avatar Oct 14 '16 08:10 tony204

In current version we have restart: false option which should reuse one session.

DavertMik avatar Jan 13 '17 23:01 DavertMik

Hello.

Is there a reason for the browser to not exit after a failed case? I use CodeceptJS in an automated test, that's being run periodically, and after some time, these browser processes slowly use up RAM , as they don't exit.

nervous-inhuman avatar Dec 14 '17 17:12 nervous-inhuman