I am new to Selenium. I have written a simple script using Junit/Selenium that opens a browser, opens a URL and then quits the browser. But the script isn't working.
Although the browser is launched nothing happens after that. I read on-line that maybe I need to add the latest Selenium jar file in the package but that didn't help either!
package pack1;
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 TC01 {
WebDriver driver;
@Before
public void launchBrowser(){
driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.get("http://www.gmail.com");
}
@Test
public void atTest(){
}
@After
public void quitBrowser(){
driver.quit();
}
}