Open id4automation opened 6 years ago
You can set chrome debug options in wdio.conf.js - capabilities: Example with additional options:
capabilities: [
{
// maxInstances can get overwritten per capability. So if you have an
// in-house Selenium grid with only 5 firefox instance available you can
// make sure that not more than 5 instance gets started at a time.
maxInstances: 3,
//
browserName: 'chrome',
chromeOptions: {
'useAutomationExtension': false,
'args': [
// '--headless',
'--disable-extensions',
'--disable-plugins',
'--disable-gpu'
],
'prefs': {
'profile.default_content_setting_values.notifications': 2,
'profile.managed_default_content_settings.plugins': 1,
}
}
}
Is that what you mean?
Apologies for the delay. No, I am expecting to do that in visual studio Code. I searched and tried few available procedures available online, but failed. As javascript/webdriverio are new technologies for me, I hope you being the expertise in this field might provide me some inputs on how that can be done. I wanted to put a debug BREAK point in between a step definition file or the page object model. Currently if I do that, it is not stopping at all. I am not sure , it because that the tests initiated through our gulp file and running npm run test in debug console is orphaned here. Kindly let me know.
Hi,
Thanks to your CBBCN git, I successflly ran my test automation in my corporate network. but not sure how to use the debug option. I am VS code [windows os] user. Any pointers on this will be much helpful.