getting error in testng java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap

+1 vote
getting this error

java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap

here is the code:

package testngpkg;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

import org.testng.annotations.Test;

public class firstclass {
 WebDriver driver;
 
  @Test
  public void browser() {
   driver = new ChromeDriver();
   driver.get("http://newtours.demoaut.com/");
  
  }
}
4 days ago in Selenium by Aarti
• 130 points
47 views
Do u have the Guava libraries imported in your classpath?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

+1 vote
1 answer
0 votes
1 answer

Getting error while running a XML file in TestNG

Hello @Sradha, The synatx of using test is ...READ MORE

answered Dec 26, 2018 in Selenium by Rashmi
1,668 views
0 votes
0 answers
0 votes
2 answers

TestNG error:- Cannot find class in classpath

The above link didn't work it means ...READ MORE

answered 5 days ago in Selenium by Rashmi Reddy PR
10,992 views
+1 vote
3 answers

java.lang.ClassNotFoundException: okhttp3.ConnectionPool - Selenium Error

The only reason for ClassNotFoundException is if ...READ MORE

answered Mar 30, 2018 in Selenium by nsv999
• 5,510 points
4,140 views
0 votes
1 answer

Java.lang.CharSequence cannot be resolved error while using sendKeys() using Selenium Webdriver

You could try this, myElement .sendKeys(new String[] { ...READ MORE

answered Apr 4, 2018 in Selenium by Johnathon
• 9,090 points
917 views
+2 votes
3 answers

Selenium Webdriver + Java - Eclipse: java.lang.NoClassDefFoundError

I also faced this issue first time, ...READ MORE

answered Aug 28, 2019 in Selenium by Shraddha
13,757 views