title: java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableMap error when trying to execute tests using Chromedriver and Maven
body: <p>I am new to selenium tests and I am currently watching some youtube videos using maven.</p>
  <p>Today I tried a few codes and worked fine but when accessing one store page and trying to search a product it gives me &quot;Access Denied&quot; message
  So I tried a few ways to open chrome instead of chromedriver.</p>
  <p>But I gave up and was willing to try another webpage. But now chromedriver wont open (gives error message). operadriver, geckodriver and etc will immediately close after launch.</p>
  <p>I am getting this error:</p>
  <pre><code>java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableMap com.google.common.collect.ImmutableMap.of(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)'
  </code></pre>
  <p>I tried looking in a lot of places but most said it was guava version, I dont use guava, even though I tried adding it to dependencies...</p>
  <p>My code is this:</p>
  <pre><code>public class TestYoutubeClass {
      WebDriver driver;
      @Before
      public void runDriver(){
          WebDriver driver = new ChromeDriver();
          driver.get(&quot;http://www.kabum.com.br&quot;);
  </code></pre>
  <p>I tried starting from the beginning and nothing worked.
  I am using IntelliJ
  On <code>pom.xml</code> I added: <code>junit; selenium-java</code> and <code>webdrivermanager</code>.</p>
  <p>Every help is really appreciated.</p>