2
respostas

Falha no MVN TEST

Oi Rodrigo,

você poderia me ajudar? não consigo executar o teste no maven da esse erro e ela não builda o meu projeto

Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. mai 26, 2021 12:38:01 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFORMAÃıES: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end mai 26, 2021 12:38:01 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFORMAÃıES: Falling back to original OSS JSON Wire Protocol. mai 26, 2021 12:38:01 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFORMAÃıES: Detected dialect: OSS mai 26, 2021 12:38:02 AM org.openqa.selenium.os.ProcessUtils killWinProcess ADVERT╩NCIA: Process refused to die after 10 seconds, and couldn't taskkill it java.lang.RuntimeException: exec return code -559038737: at org.openqa.selenium.os.WindowsUtils.killPID(WindowsUtils.java:185) at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:128) at org.openqa.selenium.os.ProcessUtils.killProcess(ProcessUtils.java:81) at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.destroyHarder(UnixProcess.java:254) at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$200(UnixProcess.java:208) at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:125) at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:155) at org.openqa.selenium.remote.service.DriverService.stop(DriverService.java:196) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:94) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658) at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:497) at br.gov.pe.tce.prever.selenium.PageObject.fechar(PageObject.java:20) at br.gov.pe.tce.prever.selenium.login.LoginTest.afterEach(LoginTest.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)

Tests in error: naoDeveriaEfetuarLoginComDadosInvalidos(br.gov.pe.selenium.login.LoginTest): Returned value cannot be converted to WebElement: {stacktrace=Backt race:(..) naoDeveriaEfetuarLoginComDadosInvalidos(br.gov.pe.selenium.login.LoginTest): Error communicating with the remote browser. It may have died.(..) deveriaEfetuarLoginComDadosValidos(br.gov.pe.tce.prever.selenium.login.LoginTest): Returned value cannot be converted to WebElement: {stacktrace=Backtrace: (..) deveriaEfetuarLoginComDadosValidos(br.gov.pe.selenium.login.LoginTest): Error communicating with the remote browser. It may have died.(..) naoDeveriaAcessarUrlRestritaSemEstarLogado(br.gov.pe.selenium.login.LoginTest): Error communicating with the remote browser. It may have died.(. .) naoDeveriaAcessarUrlRestritaSemEstarLogado(br.gov.pe.selenium.login.LoginTest): Error communicating with the remote browser. It may have died.(. .)

2 respostas

Oi Sergio,

Isso aparenta ser algum problema na versão do Chrome Driver.

Verifica qual é a versão que você baixou e qual a versão do seu chrome instalado no computador.

Oi Rodrigo, aí é que está o problema, quando eu executo via JUNit Test funciona beleza.

Porém o meu Navegador Crhome está na versão: 91.0.4472.77 win64

O meu ChromeDriver.exe está na versão: 91.0.4472.19 win32

e procurei versões do ChromeDriver x64 e não achei, será que é isso?