package br.com.alura.leilao;
import org.junit.jupiter.api.Test; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; Alguem me ajuda, acima esta meu código e em baixo o erro, não consigo sair disso
public class HelloWordSelenium {
@Test
public void hello() {
System.setProperty("webdriver.chrome.driver", "drivers/chromedriver.exe");
System.setProperty("webdriver.chrome.whitelistedIps", "");
WebDriver driver = new ChromeDriver();
driver.navigate().to("http://localhost:8080/leiloes");
driver.quit();
}
};
org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 106 Current browser version is 104.0.5112.102 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'DESKTOP-UV2CCCN', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17' Driver info: driver.version: ChromeDriver remote stacktrace: Backtrace: Ordinal0 [0x00AD1353+2233171] Ordinal0 [0x00A68E31+1805873] Ordinal0 [0x009766FD+812797] Ordinal0 [0x00998C6D+953453] Ordinal0 [0x00994200+934400] Ordinal0 [0x009919C9+924105] Ordinal0 [0x009C806C+1146988] Ordinal0 [0x009C7A6A+1145450] Ordinal0 [0x009C18A6+1120422] Ordinal0 [0x0099A73D+960317] Ordinal0 [0x0099B71F+964383] GetHandleVerifier [0x00D7A2C2+2728322] GetHandleVerifier [0x00D6C184+2670660] GetHandleVerifier [0x00B6102A+528106] GetHandleVerifier [0x00B5FE10+523472] Ordinal0 [0x00A7028C+1835660] Ordinal0 [0x00A74758+1853272] Ordinal0 [0x00A74845+1853509] Ordinal0 [0x00A7E7E4+1894372] BaseThreadInitThunk [0x76656739+25] RtlGetFullPathName_UEx [0x77A390AF+1215] RtlGetFullPathName_UEx [0x77A3907D+1165]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:1002)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:647)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at br.com.alura.leilao.HelloWordSelenium.hello(HelloWordSelenium.java:14)