// O código não funcionou, onde errei?
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 teste1 {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","C:/Users/Israel/Desktop/Drivers/chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("http://www.bing.com.br/");
WebElement campoDeTexto = driver.findElement(By.name("q")); campoDeTexto.sendKeys("Caelum");
campoDeTexto.submit();
} }