Pessoal eu executei o primeiro código utilizando o chromedriver da mesma forma que na aula porem os seguintes erros foram apresentados, ja aconteceu isso com alguem ?
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class TesteAutomatizado {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "\\Desktop\\Renan\\Alura\\Selenium\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.google.com.br/");
WebElement q = driver.findElement(By.name("q"));
q.sendKeys("Caelum");
q.submit();
}
}
Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: D:\Desktop\Renan\Alura\Selenium\chromedriver.exe
at com.google.common.base.Preconditions.checkState(Preconditions.java:585)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:136)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:131)
at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:32)
at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:137)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:339)
at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:88)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at TesteAutomatizado.main(TesteAutomatizado.java:11)