title: maven does not open the browser
body: <p>I am fresher to testing. I developed a maven selenium project. It shown the build failure and display <code>java.lang.NoClassDefFoundError: org/openqa/selenium/interactions/HasInputDevices.</code></p>
  
  <p>What is the reason for that issue? Here I had attached my code. </p>
  
  <p>This is my project explorer window.<br>
  <a href="https://i.stack.imgur.com/wZwzV.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p><strong>SampleTest.java</strong></p>
  
  <pre><code>package com.java.maven;
  
  
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  import org.testng.annotations.Test;
  
  public class SecondTest {
      WebDriver driver;
  
  @Test
  public void test()
  {
      System.out.println("hai");
      System.setProperty("webdriver.chrome.driver", "E:/driver/chromedriver.exe");
      driver = new ChromeDriver();
      driver.get("http://stackoverflow.com");
  
  }
  }
  </code></pre>
  
  <p><strong>POM.xml file</strong>
  This is my pom.xml file.</p>
  
  <pre><code> &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;SecondGroupId&lt;/groupId&gt;
    &lt;artifactId&gt;SecondArtifactId&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
    &lt;name&gt;SecondMaven&lt;/name&gt;
  
    &lt;dependencies&gt;
  
      &lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-api&lt;/artifactId&gt;
      &lt;version&gt;2.0rc2&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
       &lt;dependency&gt;
          &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
          &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
      &lt;version&gt;2.53.0&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
    &lt;groupId&gt;org.testng&lt;/groupId&gt;
    &lt;artifactId&gt;testng&lt;/artifactId&gt;
    &lt;version&gt;6.8&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
  
   &lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-chrome-driver&lt;/artifactId&gt;
      &lt;version&gt;2.53.0&lt;/version&gt;
       &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
   &lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-remote-driver&lt;/artifactId&gt;
      &lt;version&gt;2.53.0&lt;/version&gt;
  &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
     &lt;build&gt;
      &lt;pluginManagement&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
            &lt;version&gt;3.5.1&lt;/version&gt;
            &lt;configuration&gt;
              &lt;!-- put your configurations here --&gt;
  
            &lt;/configuration&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
    &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>Console</strong>
  This is my console which are obtained as my output.</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO] 
  [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building SecondMaven 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ SecondArtifactId ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 0 resource
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ SecondArtifactId ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ SecondArtifactId ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 0 resource
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ SecondArtifactId ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ SecondArtifactId ---
  [INFO] Surefire report directory: E:\MavenRepository\SecondArtifactId\target\surefire-reports
  
  -------------------------------------------------------
   T E S T S
  -------------------------------------------------------
  Running com.java.maven.SecondTest
  Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@1ee0005
  hai
  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.227 sec &lt;&lt;&lt; FAILURE!
  test(com.java.maven.SecondTest)  Time elapsed: 0.047 sec  &lt;&lt;&lt; FAILURE!
  java.lang.NoClassDefFoundError: org/openqa/selenium/interactions/HasInputDevices
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at com.java.maven.SecondTest.test(SecondTest.java:17)
  Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.interactions.HasInputDevices
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 58 more
  
  
  Results :
  
  Failed tests:   test(com.java.maven.SecondTest): org/openqa/selenium/interactions/HasInputDevices
  
  Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
  
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 10.273 s
  [INFO] Finished at: 2016-04-18T11:26:34+05:30
  [INFO] Final Memory: 10M/138M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project SecondArtifactId: There are test failures.
  [ERROR] 
  [ERROR] Please refer to E:\MavenRepository\SecondArtifactId\target\surefire-reports for the individual test results.
  [ERROR] -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  </code></pre>