Configured needed dependency from here in pom.xml: https://github.com/bonigarcia/webdrivermanager
But still having an error when declaring WebDriverManager.
It seems you are declaring WebDriverManager as a test dependency but then you are using in the regular source folder. To solve it, simple remove <scope>test</scope>
from the WebDriverManager declaration in your pom.xml and try again.