Exception in thread main java.lang.Error: Unresolved compilation problem: ChromeDriver cannot be resolved to a type | Selenium Forum
S
Srujana Kunapareddy Posted on 22/07/2020

I have written below program. 

import java.util.Date;
import org.openqa.selenium.chrome.ChromeDriver;
public class Hello {

public static void main(String[] args) {
System.out.println("Hello!!! Srujana");
Date d = new Date();
System.out.println("Date is : " + " " + d);
new ChromeDriver();


}

}

It's throwing compilation error

Exception in thread "main" java.lang.Error: Unresolved compilation problem: ChromeDriver cannot be resolved to a type

Please let me know what am I missing?

 

Thank you.


S
Srujana Kunapareddy Replied on 22/07/2020

The problem is solved after switching the JRE to 1.8.


A
Ashish Thakur Replied on 23/07/2020

ok


Related Posts