title: Selenium 4 no longer loading Firefox Driver
body: <p>After updating a Java application based on Selenium to version 4, I found code packaged as an UberJar failed with the error:</p>
  <pre><code>Driver info: driver.version: FirefoxDriver
      at java.base/java.util.Optional.orElseThrow(Optional.java:403)
      at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:230)
      at org.openqa.selenium.firefox.FirefoxDriver.&lt;init&gt;(FirefoxDriver.java:186)
      at com.octopus.decorators.FirefoxDecorator.init(FirefoxDecorator.java:72)
  </code></pre>
  <p>Interestingly all tests passed though. How can I fix this?</p>