I have looked through mulitple questions on here which had the answers that the selenium JARs need to be in the project dependencies for the IDE to be able to import.
However, I have checked in VScode and if I ain't missing something, all the selenium JARs are mentioned in the referenced libraries and should be therefore in the dependencies. The old method of right-clicking the project and opening the Java build path doesn't seem to work anymore.
I still get this error message that the selenium package does not exist.
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class App {
public static void main(String[] args) throws Exception {
System.setProperty("webdriver.chrome.driver", "~/selenium/testing/bin/chromedriver");
System.out.println("Hello, World!");
}
}
How can this be fixed? I am using VSC on the Linux virtual machine which is by default installed on the newer chromebooks (can't get another laptop atm)
Thank you for your help.