operachromiumdriver icon indicating copy to clipboard operation
operachromiumdriver copied to clipboard

Feature Request: Toggle VPN via DesiredCapabilities

Open hazmeister opened this issue 9 years ago • 2 comments

Saw the announcement today - Opera now supports VPN built into the browser!

We have an app which offers different options based on the user's IP address. It would awesome if we could test our different regions by toggling the VPN when starting the browser, perhaps via DesiredCapabilities. This really takes the pain out of managing VPN connections for an environment. Ideally, this would enable us to choose a location too.

hazmeister avatar Apr 22 '16 12:04 hazmeister

Hi @hazmeister did you found a way how to toggle VPN in Opera?

Deadly0 avatar Nov 03 '17 20:11 Deadly0

There may be an easier way - but I did manage to get it working using OperaOptions to load a custom profile:

OperaOptions operaOptions = new OperaOptions();
operaOptions.addArguments("user-data-dir", "~/Library/Application Support/com.operasoftware.Opera");
driver = new OperaDriver(operaOptions);

hazmeister avatar Nov 03 '17 22:11 hazmeister