this is my code
WebDriver driver = new FirefoxDriver();
driver.get("http://www.google.com");
WebElement searchBox = driver.findElement(By.name("q"));
searchBox.sendKeys("Packt Publishing");
searchBox.submit();
these are my imports:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
(i don't know why here it puts them in the same line)
What it does is that it opens a new firefox page with an empty tab ... what's wrong? I looked for other people in this site with the same problem and I did not find an answer.