pom.xml
<dependency>
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>2.70.0</version>
</dependency>
Usage in test.java file
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
Getting error "Cannot resolve symbol 'gargoylesoftware'" in IntelliJ 2022.1.3.
I have run command mvn install
from the command line under this project directory to make sure all the dependancies mentioned in the pom.xml are downloaded.