selenium-standalone icon indicating copy to clipboard operation
selenium-standalone copied to clipboard

proxy not work

Open zrx8269 opened this issue 9 years ago • 2 comments

Current Behavior

The proxy does't work. The code in my project is as below:

const webdriverio = require('webdriverio');

var opts = {
	desiredCapabilities: {
		browserName: 'firefox',
		proxy: {
                        proxyType: "manual",
	            httpProxy: "a.b.c",
	            httpProxyPort: 8080,
	            sslProxy: "a.b.c",
	            sslProxyPort: 8080
                  }
	}
},
webdriverio
        .remote(opts)
    .init()
        .url('http://www.google.com');

Your Environment

  • Version of selenium-standalone that you are using: v3.5.3
  • System/platform: Windows
  • Other details that might be important: webdriverio: v4.8.0 firefox: 55.0.2

zrx8269 avatar Sep 06 '17 08:09 zrx8269

@zrx8269 From your example, it looks like you are using the webdriverio tools directly and not necessarily the selenium-standalone project. If that is not the case, can you create a sample repo that has the exact config files and scripts you are using that reproduces the issue?

selenium-standalone does have the ability to set a proxy that would be used when downloading versions of the Selenium server or drivers, but does not use that value when running the selenium server or drivers. Setting that through webdriverio's config file needs to be in the seleniumInstallArgs section of their config file.

stephenash avatar Sep 07 '17 00:09 stephenash

Closing due to inactivity

mgrybyk avatar Oct 09 '20 21:10 mgrybyk