Skip to content

Adding custom capabilities to the browserInfo. #71

@tanishqbhadouria

Description

@tanishqbhadouria

Hi,
We wanted to generate the network logs and debug logs when tests run in pipeline, found out that there is no explicit configuration for that in the runner.
In webdriver.js i saw that browserOptions are passed already if we add a capabilities object in that and in webdriver.js if we set those capabilities we could use custom capabilities.
We could use it like

example
browser : {
            name: 'chrome',
            capabilities: {
                'goog:chromeOptions': {
                    args: [
                        '--enable-logging=stderr',
                        '--enable-logging=stdout',
                        '--log-level=0',
                        '--v=1',
                        '--enable-logging',
                        '--net-log-level=0',
                        `--log-net-log=${chromeNetLogFile}`
                    ]
                }
            }
        }

I tried that on my end and it works and if it seems like a useful feature can that be added to the jasmine-browser-runner?

Also I saw your comment about web-test-runner, we are trying to migrate from karma web-test-runner and jasmine-browser-runner were the two successors for karma but I don't actually know the progress of web-test-runner for jasmine, and it is already more than two years when announcement was made, need your advice that should we wait for that or should we stick to our migration from karma to jasmine-browser-runner.

Thanks,
Tanishq

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions