I am trying to execute this set of code but when I do I get these errors. I can't find anything on "okio" let alone how to fix the issue. See below for the list of the problems that show up each time I run Java. I know the codes are correct as this comes from a course I am participating in but these errors don't make sense and I don't know how to fix them. Help!!
- ChromeDriver cannot be resolved to a type
- okio cannot be resolved to a module
- The type org.openqa.selenium.chrome.ChromeDriver is not accessible
- The type org.openqa.selenium.WebDriver is not accessible
- WebDriver cannot be resolved to a type
package Example;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Demo {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\bshan\\Downloads\\chromedriver.exe");
WebDriver driver= new ChromeDriver();
}
}
I have tried removing and re-adding the External JARS to no avail.