Skip to content

Unable to set proxy for Safari and Edge #3283

@rahul6

Description

@rahul6

OS:
OS X EL Capitan
Browser:
Safari 10

I am using the below code to set proxy on Edge and Safari but it is not working.
But the same code works for firefox/chrome/IE. Can you please help me this ?
How to set proxy on Edge and Safari using RemoteWebDriver ?

Proxy proxy = new Proxy();
proxy.setAutodetect(false);
proxy.setProxyType(ProxyType.MANUAL);
proxy.setHttpProxy("xxxx:443");
proxy.setFtpProxy("xxxx:443");
proxy.setSslProxy("xxxx:443");
proxy.setSocksProxy("xxxxxx:443");

DesiredCapabilities capabilities = DesiredCapabilities.safari();
capabilities.setCapability(CapabilityType.PROXY, proxy);

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