Dear all,
I'd like to have Google Chrome starts with Network console/Tab enabled. How to set it up in protractor.conf file?
The reason why I need this thing is:
1 - protractor run on function A very slow
2 - manual run on function A only takes 1-5s
Many thanks,
Maybe passing protractor commands directly to chrome from console could help you to debug? https://github.com/angular/protractor/blob/master/docs/debugging.md#testing-out-protractor-interactively
Unfortunately, WebDriver doesn't play well with Dev Tools open, so this isn't an option at the moment :(
However, see #674, which might help out with debugging for you. Working on that one!
For people looking to run tests in chrome with dev-tools opened you can do it now with the arg '--auto-open-devtools-for-tabs' for chromeOptions in your config for protractor:
{
...
baseUrl: 'localhost:4200',
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['--auto-open-devtools-for-tabs']
}
}
...
}
For people looking to run tests in chrome with dev-tools opened you can do it now with the arg '--auto-open-devtools-for-tabs' for chromeOptions in your config for protractor:
{ ... baseUrl: 'localhost:4200', capabilities: { browserName: 'chrome', chromeOptions: { args: ['--auto-open-devtools-for-tabs'] } } ... }
@hardvolk Amazing, It's a great option. Thanks!
Most helpful comment
For people looking to run tests in chrome with dev-tools opened you can do it now with the arg '--auto-open-devtools-for-tabs' for chromeOptions in your config for protractor: