Protractor: [Question] Start Google Chrome with Network tab enabled

Created on 5 May 2014  路  4Comments  路  Source: angular/protractor

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,

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:

{
   ...
   baseUrl: 'localhost:4200',
    capabilities: {
        browserName: 'chrome',
        chromeOptions: {
            args: ['--auto-open-devtools-for-tabs']
        }
    }
   ...
}

All 4 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vishalshivnath picture vishalshivnath  路  3Comments

codef0rmer picture codef0rmer  路  3Comments

juliemr picture juliemr  路  3Comments

nt3rp picture nt3rp  路  3Comments

andyman3693 picture andyman3693  路  3Comments