Run Selenium Tests in Firefox Browser

package simpleprograms;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class runseleniumtestsinfirefox {

public static WebDriver driver;

public static void main(String[] args) throws InterruptedException {

driver = new FirefoxDriver();

driver.manage().window().maximize();

driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);

driver.get(“http://www.latestsoftwaretestingnews.com/?cat=1548”);

Thread.sleep(5000);

driver.quit();

System.out.println(“Test case executed successfully… “);

}

}

 

1 3 4 5