Skip to content

BrowserWebDriverContainer configure does overwrite no_proxy environment variable #928

@roamingthings

Description

@roamingthings

Hi,

I've noticed that the configure() method of BrowserWebDriverContainer is setting the environment variable to localhost regardless of another value that might already been present. This means that it is not possible to set a custom no_proxy value:

    @Rule
    public final BrowserWebDriverContainer chromeWithProxy = (BrowserWebDriverContainer) new BrowserNoProxyWebDriverContainer()
            .withDesiredCapabilities(chrome())
            .withRecordingMode(RECORD_ALL, new File("."))
            .withEnv("HTTP_PROXY", "http://my.proxy.com:8080")
            .withEnv("HTTPS_PROXY", "https://my.proxy.com:8080")
            .withEnv("no_proxy", "localhost,.noproxy-domain.com");

I've implemented a fix to this issue
roamingthings@4ed091b

Regards,
Alex

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions