Mi trovo di fronte a java.lang.IllegalStateException eseguire il mio codice.
Codice di prove:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class seleniumintroduction {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","C:\\Users\\ATIF\\OneDrive\\Desktop\\Selenium Course\\chromedriver_win32.exe");
WebDriver driver=new ChromeDriver();
}
}
Errore sto vedendo:
Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist: C:\Users\ATIF\OneDrive\Desktop\Selenium Course\chromedriver_win32.exe