title: Junit 5 - No ParameterResolver registered for parameter
body: <p>I can write up and execute Selenium script without any special test framework but I wanted to use Junit 5 (because we have dependency with other tools) and I have never seen such error <code>org.junit.jupiter.api.extension.ParameterResolutionException</code> while working with Junit 4.</p>
  <p>Currently it's Junit 5 and
  I googled it to get some sort of idea but can not resolve the issue.</p>
  <p>Test script using <code>JUnit 5</code>, <code>Eclipse 4.8</code> and <code>Selenium</code>:</p>
  <pre><code>import static org.junit.jupiter.api.Assertions.assertEquals;
  import org.junit.jupiter.api.AfterEach;
  import org.junit.jupiter.api.BeforeEach;
  import org.junit.jupiter.api.Test;
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  
  public  class loginTest  {
      public  WebDriver driver = null;
  
      public loginTest(WebDriver driver) {
          this.driver=driver;
      }
  
      @BeforeEach
      public void setUp() throws Exception {
          driver.get(&quot;google.com&quot;);
          System.out.println(&quot;Page title is: &quot; + driver.getTitle());
      }
  
      @Test
      public void test() {
          // some action here I have in original script
          System.out.println(&quot;Page title is: &quot; + driver.getTitle());
      }
  
      @AfterEach
      public void tearDown() throws Exception {
          driver.quit();
      }
  }
  </code></pre>
  <p>Stack trace:</p>
  <blockquote>
  <p>org.junit.jupiter.api.extension.ParameterResolutionException: No ParameterResolver registered for parameter [org.openqa.selenium.WebDriver arg0] in executable [public login.loginTest(org.openqa.selenium.WebDriver)].
  at org.junit.jupiter.engine.execution.ExecutableInvoker.resolveParameter(ExecutableInvoker.java:191)</p>
  </blockquote>