How to keep the browser window open after a test executes in Testcafe?
There was a question on the forum here that brought me to a live Testcafe version, but it seems to be deprecated.
I wish to keep the browser window open to see the elements while I'm developing the test.
Update:
This is my config file:
{
"name": "testcafe-demo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"testcafe": "^1.8.2"
},
"devDependencies": {},
"scripts": {
"test": "testcafe chrome tests/",
"testcafe": "testcafe"
},
"author": "mmrse",
"license": "ISC"
}
I tried starting the tests from the command line with
E:\testcafe-demo> npm run testcafe chrome demo.testcafe.ts --live
and with
E:\testcafe-demo> npm test chrome demo.testcafe.ts --live
but the result is always the same - after the test is finished, the browser is closed and there is no indication "live" mode was being activated.