Pessoal,
Estou com outro problema para efetuar testes pelo Chrome;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class TesteAutomatizado {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver",
"Depedencias/drives-navegadores(browsers)/chrome/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.google.com.br");
WebElement campoDeTexto = driver
.findElement(By.name("q"));
campoDeTexto.sendKeys("Caelum");
campoDeTexto.submit();
}
}
Ao efetuar o run as, aparecer a seguinte mesagem de erro:
Starting ChromeDriver 80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/3987@{#882}) on port 3096 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Como resolver?