Cannot resolve symbol WebDriver

505 views
Skip to first unread message

sandy

unread,
Apr 5, 2023, 6:38:54 AM4/5/23
to Selenium Users
Iam getting this messge 

Steps done:
1)Added Depdencies
2)Maven Clean
3)Ensured that the jdk is pointing correctly
4)But still the issue persist

Any inputs will be helpful as iam not able to find a solution

Below is POM

<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<artifactId>AutomationCucumber</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>9</maven.compiler.source>
<maven.compiler.target>9</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>

<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>7.11.2</version>
</dependency>

<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>7.11.2</version>
<scope>test</scope>
</dependency>

<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.3.2</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.8.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/gherkin -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>gherkin</artifactId>
<version>26.1.0</version>
</dependency>

</dependencies>

</project>

A B

unread,
Apr 5, 2023, 11:10:30 PM4/5/23
to Selenium Users
What is the error you are getting?

Sandhya M

unread,
Apr 6, 2023, 1:13:50 AM4/6/23
to seleniu...@googlegroups.com
I have fixed it

Thank you for responding 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/89644f80-dd8e-4aa4-8232-b3f102f5c777n%40googlegroups.com.

siva kolli

unread,
Apr 6, 2023, 3:52:22 AM4/6/23
to seleniu...@googlegroups.com
I think the cucumber-core dependency is missing.
follow the below github code: 


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/89644f80-dd8e-4aa4-8232-b3f102f5c777n%40googlegroups.com.


--

Kind Regards,
Reply all
Reply to author
Forward
0 new messages