"desiredCapabilities": { // use Chrome as the default browser for tests
"browserName": "chrome",
"chromeOptions": {
"args": [
"--no-sandbox",
"window-size=1366,768",
"--incognito"
// ,"--headless"
]
}
},--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs+unsubscribe@googlegroups.com.
To post to this group, send email to nightw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/f7a42d5a-2f56-4575-bdc9-9a7ba903beef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
how does a test look like ?
On Jun 11, 2018 7:24 PM, "ChaBuku Bakke" <cha...@gmail.com> wrote:
Does anyone experience this issue?In my nightwatch.conf.js file I have under test settings this:"desiredCapabilities": { // use Chrome as the default browser for tests
"browserName": "chrome",
"chromeOptions": {
"args": [
"--no-sandbox",
"window-size=1366,768",
"--incognito"
// ,"--headless"
]
}
},When I run headless it does not leave behind extra Chrome background processes, but when I run it with that commented out (like above) it will leave behind Chrome background processesThis quickly drags my system down.Am I missing something in my settings to remove this?
--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.
module.exports = {
before: function(browser, done) {
browser.perform(function(){done();});
},
beforeEach: function (browser, done) {
const PreloginPage = browser.page.PreloginPage();
PreloginPage.navigate();
},
'Can Go To Home Page': function(browser){
const HomePage = browser.page.HomePage();
HomePage.navigate()
.isAt();
},
after: function(browser, done){
browser.end(done);
}
};
afterEach: function(browser, done) {
// performing an async operation
setTimeout(function() {
// finished async duties
done();
browser.closeWindow();
browser.end();
}, 200);
}
Just add browser.closeWindow(); before browser.end();--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/525f70ed-cfde-47b5-ad93-51835aa11347%40googlegroups.com.
Thanks & Regards,Simon
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.