testing Rapid feedback to developers Form of documentation for test cases, automatically generated, and up to date Custom defect reporting Finding defect missing by manual testing
web page in a real browser Change browser dimensions Interact with browser: click on link, upload file, fill input field, click on checkbox, etc Take web page's screenshots Get the page source
Firefox driver WebDriver driver = new FirefoxDriver(); // And now use this to visit Google driver.get("http://www.google.com"); // Find the text input element by its name WebElement element = driver.findElement(By.name("q")); // Enter something to search for element.sendKeys("Cheese!"); // Now submit the form. WebDriver will find the form for us from the element element.submit(); //Close the browser driver.quit();