Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Toggle VPN via DesiredCapabilities #23

Open
hazmeister opened this issue Apr 22, 2016 · 2 comments
Open

Feature Request: Toggle VPN via DesiredCapabilities #23

hazmeister opened this issue Apr 22, 2016 · 2 comments

Comments

@hazmeister
Copy link

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.

@Deadly0
Copy link

Deadly0 commented Nov 3, 2017

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

@hazmeister
Copy link
Author

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants