Basic Java JUnit Test Setup
Here is a sample WebDriver Java test using the JUnit framework: [code] package WebDriverTest1; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class WebDriverTest1 { private WebDriver driver; @Before public void setup() throws Exception { driver = new FirefoxDriver(); } @After public void teardown() throws Exception { driver.quit(); } […]