Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error importing WebDriver
Error importing WebDriver [message #1865151] Fri, 26 April 2024 22:57 Go to next message
Umer Siddique is currently offline Umer SiddiqueFriend
Messages: 2
Registered: April 2024
Junior Member
I'm encountering an issue with importing WebDriver in Eclipse while working on a Selenium WebDriver project. Despite correctly configuring my project and adding the necessary Selenium WebDriver JAR files to the build path, I'm unable to resolve the import statement for WebDriver.

Error message: The type org.openqa.selenium.WebDriver is not accessible

Body with code:
package SeleniumWebDriverDemo;

import org.openqa.selenium.WebDriver;
public class SearchTraining {

WebDriver driver;

public static void main(String[] args) {
// TODO Auto-generated method stub
}
}

Eclipse version: 2023-12 (4.30.0), Build id: 20231201-2043.
Selenium WebDriver version: 4.20.0
Java version: 22.0.1" 2024-04-16
Re: Error importing WebDriver [message #1865253 is a reply to message #1865151] Mon, 29 April 2024 14:49 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4450
Registered: July 2009
Senior Member

If you weren't intending to use the Java Platform Module System, or don't know what that is, try removing that module-info.java file.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Error importing WebDriver [message #1865259 is a reply to message #1865253] Mon, 29 April 2024 15:21 Go to previous message
Umer Siddique is currently offline Umer SiddiqueFriend
Messages: 2
Registered: April 2024
Junior Member
No Message Body
Previous Topic:Multiple user (classroom) installs
Next Topic:Error trying to open project contents
Goto Forum:
  


Current Time: Sat May 25 11:26:37 GMT 2024

Powered by FUDForum. Page generated in 0.09261 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top