When we try to run TestNG or JUnit tests with maven, we usually face this exception saying java.lang.RuntimeException:java.lang.IllegalStateException: The path to the driver executable must be set by the webdiver.chrome.driver system property For this the chrome executable driver file should be available in the classpath. You can add the chrome driver to the classpath of the current project. But if you want to configure the same in a maven pom file, you should do the following. To execute TestNG or JUnit test cases, we use maven-surefire-plugin. We can configure the path to the chrome driver as a configuration parameter in this plugin as shown below <build> <!-- Source directory configuration --> <sourceDirectory>src</sourceDirectory> <plugins> <!-- Following plugin executes the testng tests --> ...