title: Opera WebDriver wont launch Opera (Selenium 3.1.0)
body: <p>Its my first post, so I hope I will ask properly. </p>
  
  <p>So as the title says, I have troubles launching Opera browser via Selenium WebDriver (I have tried versions 3.1.0 and 3.2.0). I use java to write code.</p>
  
  <p>I have a code where you specify the browser that you want to use, and then a site you wanna go to. Chrome and Firefox works just fine, Opera is giving me quite a hell. Code:</p>
  
  <pre><code>public class Browser {
  
      public WebDriver driver;
  
      public void startWebDriver (String browser) {
          if (browser == "Chrome") {
              driver = new ChromeDriver();
          }
  
          else if (browser == "Firefox") {
              System.setProperty("webdriver.gecko.driver", "c:\\Users\\...\\webdriver\\geckodriver.exe");
              driver = new FirefoxDriver();
          }
  
          else if (browser == "Opera") {
              ChromeOptions options = new ChromeOptions();
              options.addArguments("user-data-dir = c:\\Users\\...\\AppData\\Roaming\\Opera Software\\Opera Stable");
              options.setBinary("c:\\Program Files\\Opera\\43.0.2442.1144");
              DesiredCapabilities capabilities = new DesiredCapabilities();
              capabilities.setCapability(ChromeOptions.CAPABILITY, options);
              System.setProperty("webdriver.opera.driver", "c:\\Users\\...\\operadriver.exe");
              driver = new OperaDriver(capabilities);
  </code></pre>
  
  <p>It fails on: Capabilities [{message=unknown error: Opera failed to start
    (Driver info: OperaDriver beta=0.1 (87cdb4f0d742fb950d1f0fca1f3f6b483e4fb69c),platform=Windows NT 10.0 x86_64), platform=ANY}]
  Session ID: d02baabe92d8bbfd90641a00d2458aef</p>
  
  <p>Now I had some trouble making the driver find even find the Opera binaries... but managed by setting the path manually.</p>
  
  <p>I am curious if anyone managed to get Opera working through WebDriver. On GitHub some guy claimed he managed to get it working, but with RemoteWebDriver while "hacking" the Opera to be run with ChromeDriver instead of OperaDriver. I have tried that as well and it did not work either (the process was that you find on which Chromium is your Opera based - my is Opera 43, that is based on Chromium 56, for which the chromium driver 2.27 is used - for more info about that process you can see: <a href="https://github.com/operasoftware/operachromiumdriver/issues/27" rel="nofollow noreferrer">https://github.com/operasoftware/operachromiumdriver/issues/27</a> , but he did that on Mac, I dont know, if there might be some differences since I am on Windows machine. </p>
  
  <p>There is no official support from the Opera itself, as far as I understood. </p>
  
  <p>Is anyone running Selenium on Opera these days? If so, how did you manage to achieve that? Maybe I am missing something very basic... </p>
  
  <p>Any tips or advice appreciated :) </p>