0

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!!

  1. ChromeDriver cannot be resolved to a type
  2. okio cannot be resolved to a module
  3. The type org.openqa.selenium.chrome.ChromeDriver is not accessible
  4. The type org.openqa.selenium.WebDriver is not accessible
  5. 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.

0 Answers0