Home page

Monday, October 27, 2014

Setup

import java.util.concurrent.TimeUnit;

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


public class SetUp {

    public static WebDriver driver;
   
    public void firefoxSetup()
    {
        driver = new FirefoxDriver();
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
        driver.get("http://www.google.com/");
        driver.manage().window().maximize();
    }
   
    public void quitFireFox()
    {
        driver.quit();
    }
}

No comments:

Post a Comment