Как решить ошибку Process finished with exit code 1 в Java Selenium?
"C:\Program Files\Java\jdk-11.0.10\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.3\lib\idea_rt.jar=50373:C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.3\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\alexi\Desktop\untitled\target\classes;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-java\4.0.0-beta-2\selenium-java-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-api\4.0.0-beta-2\selenium-api-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-chrome-driver\4.0.0-beta-2\selenium-chrome-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\com\google\auto\service\auto-service-annotations\1.0-rc7\auto-service-annotations-1.0-rc7.jar;C:\Users\alexi\.m2\repository\com\google\auto\service\auto-service\1.0-rc7\auto-service-1.0-rc7.jar;C:\Users\alexi\.m2\repository\com\google\auto\auto-common\0.10\auto-common-0.10.jar;C:\Users\alexi\.m2\repository\com\google\guava\guava\30.1-jre\guava-30.1-jre.jar;C:\Users\alexi\.m2\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;C:\Users\alexi\.m2\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;C:\Users\alexi\.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\alexi\.m2\repository\org\checkerframework\checker-qual\3.5.0\checker-qual-3.5.0.jar;C:\Users\alexi\.m2\repository\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar;C:\Users\alexi\.m2\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-chromium-driver\4.0.0-beta-2\selenium-chromium-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-devtools\4.0.0-beta-2\selenium-devtools-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-http\4.0.0-beta-2\selenium-http-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-json\4.0.0-beta-2\selenium-json-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v85\4.0.0-beta-2\selenium-devtools-v85-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v86\4.0.0-beta-2\selenium-devtools-v86-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v87\4.0.0-beta-2\selenium-devtools-v87-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v88\4.0.0-beta-2\selenium-devtools-v88-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-devtools-v89\4.0.0-beta-2\selenium-devtools-v89-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-edge-driver\4.0.0-beta-2\selenium-edge-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-firefox-driver\4.0.0-beta-2\selenium-firefox-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-firefox-xpi-driver\4.0.0-beta-2\selenium-firefox-xpi-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-ie-driver\4.0.0-beta-2\selenium-ie-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-opera-driver\4.0.0-beta-2\selenium-opera-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-remote-driver\4.0.0-beta-2\selenium-remote-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\io\netty\netty-buffer\4.1.58.Final\netty-buffer-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-codec-http\4.1.58.Final\netty-codec-http-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-codec\4.1.58.Final\netty-codec-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-handler\4.1.58.Final\netty-handler-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-common\4.1.58.Final\netty-common-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-transport-native-epoll\4.1.58.Final\netty-transport-native-epoll-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-transport-native-kqueue\4.1.58.Final\netty-transport-native-kqueue-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-transport-native-unix-common\4.1.58.Final\netty-transport-native-unix-common-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-transport\4.1.58.Final\netty-transport-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-resolver\4.1.58.Final\netty-resolver-4.1.58.Final.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-api\1.0.0\opentelemetry-api-1.0.0.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-context\1.0.0\opentelemetry-context-1.0.0.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-exporter-logging\1.0.0\opentelemetry-exporter-logging-1.0.0.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-sdk-metrics\1.0.0-alpha\opentelemetry-sdk-metrics-1.0.0-alpha.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-sdk-common\1.0.0\opentelemetry-sdk-common-1.0.0.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-sdk-extension-autoconfigure\1.0.0-alpha\opentelemetry-sdk-extension-autoconfigure-1.0.0-alpha.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-sdk-trace\1.0.0\opentelemetry-sdk-trace-1.0.0.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-api-metrics\1.0.0-alpha\opentelemetry-api-metrics-1.0.0-alpha.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-sdk\1.0.0\opentelemetry-sdk-1.0.0.jar;C:\Users\alexi\.m2\repository\io\opentelemetry\opentelemetry-semconv\1.0.0-alpha\opentelemetry-semconv-1.0.0-alpha.jar;C:\Users\alexi\.m2\repository\net\bytebuddy\byte-buddy\1.10.19\byte-buddy-1.10.19.jar;C:\Users\alexi\.m2\repository\org\apache\commons\commons-exec\1.3\commons-exec-1.3.jar;C:\Users\alexi\.m2\repository\org\asynchttpclient\async-http-client\2.12.2\async-http-client-2.12.2.jar;C:\Users\alexi\.m2\repository\org\asynchttpclient\async-http-client-netty-utils\2.12.2\async-http-client-netty-utils-2.12.2.jar;C:\Users\alexi\.m2\repository\io\netty\netty-codec-socks\4.1.53.Final\netty-codec-socks-4.1.53.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-handler-proxy\4.1.53.Final\netty-handler-proxy-4.1.53.Final.jar;C:\Users\alexi\.m2\repository\io\netty\netty-transport-native-epoll\4.1.53.Final\netty-transport-native-epoll-4.1.53.Final-linux-x86_64.jar;C:\Users\alexi\.m2\repository\io\netty\netty-transport-native-kqueue\4.1.53.Final\netty-transport-native-kqueue-4.1.53.Final-osx-x86_64.jar;C:\Users\alexi\.m2\repository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;C:\Users\alexi\.m2\repository\com\typesafe\netty\netty-reactive-streams\2.0.4\netty-reactive-streams-2.0.4.jar;C:\Users\alexi\.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\Users\alexi\.m2\repository\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-safari-driver\4.0.0-beta-2\selenium-safari-driver-4.0.0-beta-2.jar;C:\Users\alexi\.m2\repository\org\seleniumhq\selenium\selenium-support\4.0.0-beta-2\selenium-support-4.0.0-beta-2.jar Main
Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist: c:\tools\chromedriver
at org.openqa.selenium.internal.Require$FileStateChecker.isFile(Require.java:315)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:154)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:149)
at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:37)
at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:222)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:419)
at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:119)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:41)
at Main.main(Main.java:9)
java.lang.IllegalStateException: The driver executable must exist: c:\tools\chromedriver
Проверьте, лежит ли драйвер chromedriver для браузера Chrome по пути c:\tools\chromedriver
Если нет, то загрузите
Также было бы неплохо исходный код предоставить или посмотрите есть ли в вашем коде: