Jsem čelí java.lang.IllegalStateException vykonávající můj kód.
Kód zkoušky:
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();
}
}
Chyby vidím:
Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist: C:\Users\ATIF\OneDrive\Desktop\Selenium Course\chromedriver_win32.exe