The type org.openqa.selenium.chrome.ChromeDriver is not accessible | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
10% July Month Discount Avail now

Selenium Training Forum

The type org.openqa.selenium.chrome.ChromeDriver is not accessible

S
sowmya Post on 12/06/2019

Hi,

I'm launching chrome browser, I have added selenium-server-standalone-xxxx.jar to my project build path but still i'm getting compilor error "The type org.openqa.selenium.chrome.ChromeDriver is not accessible".


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

public class Selenium_Test {

public static void main(String[] args) throws InterruptedException {

System.out.println("Hello");
System.setProperty("webdriver.chrome.driver", "C:\\Users\\Dell-Latitude-E6430\\Selenium_training\\chromedriver.exe");
WebDriver driver;
driver=new ChromeDriver();

S

Instructor

Support Team Reply on 12/06/2019

Please try adding the latest version jar, and share the screenshot of the error if it still persists.

S
sowmya Reply on 12/06/2019

Added version jar, working fine now. Thank you very much.