Selenium-Java:Browsermob Proxyy- NoClassDefFoundError
<p>I updated POM.xml with latest selenium-java dependency and Browsermob proxy.</p>

<p>Java Code:</p>

<blockquote>
<pre><code>   WebDriver driver = new ChromeDriver();
    driver.get("http://www.google.com");
    driver.quit();
</code></pre>
  
  <p>POM.xml looks like,</p>
</blockquote>

<pre><code>        &lt;dependency&gt;
        &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
        &lt;artifactId&gt;selenium-server&lt;/artifactId&gt;
        &lt;version&gt;2.53.1&lt;/version&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.1&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;net.lightbody.bmp&lt;/groupId&gt;
        &lt;artifactId&gt;browsermob-proxy&lt;/artifactId&gt;
        &lt;version&gt;2.0-beta-8&lt;/version&gt;
    &lt;/dependency&gt;
</code></pre>

<p>While I run the automation script, getting the following error:</p>

<p><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/interactions/HasInputDevices</code></p>

<p>The script runs fine , after removing Browsermob proxy dependency. ( But I need Browsermob proxy to capture network data).</p>

<p>Looks like the Browsermob proxy has a dependency <code>selenium-api-2.*</code>, I assume that is outdated and causing this problem.</p>

<p>Any help would be greatly appreciated.</p>