title: I can't open anything with Selenium WebBrowser Java
body: <p>I am trying to open local files with Selenium. With the code below, Firefox is opening, but I have the error <code>org.openqa.selenium.WebDriverException: Timed out waiting 45 seconds for Firefox to start.</code>.</p>
  
  <pre><code>    File gecko = new File("resources/geckodriver64.exe");
      System.setProperty("webdriver.gecko.driver", gecko.getAbsolutePath());
  
      FirefoxOptions capabilities = new FirefoxOptions();
      capabilities.setCapability("marionette", false);
      WebDriver driver = new FirefoxDriver(capabilities);
  
      driver.get("file:///C:/example/myfile.pdf");
  </code></pre>
  
  <p>Can someone help me ? I couldn't find anything on the internet.</p>