Source : JUnit 5, Eclipse 4.8 , Selenium
I can write up and execute Selenium script without any special test framework but I wanted to use Junit 5 (because we have depe
As Marc Philipp mentioned in his comment, you need to ensure that JUnit Jupiter can instantiate your test class.
For your particular scenario, you'll need to remove your custom constructor that accepts a WebDriver.
Then you have two options:
WebDriver on your own -- for example, in an @BeforeAll or @BeforeEach method.WebDriver for you.