public static void run(WebDriver driver) throws InterruptedException {
    // System.out.println("Running test for Foreign Disasters");
    driver.get("http://www.disasterassistance.gov/information/foreign-disasters");
    Header.run(driver, page);
    foreignDisasters(driver, page);
    SendEmail.run(driver);
    Footer.run(driver, page);

    RunTest.translate(driver);
    String spanishPage = page + " - Spanish";

    Header.run(driver, spanishPage);
    foreignDisasters(driver, spanishPage);
    SendEmail.run(driver);
    Footer.run(driver, spanishPage);

    driver.get("http://www.disasterassistance.gov/");
  }
Exemplo n.º 2
0
  public static void run(WebDriver driver)
      throws InterruptedException, MessagingException, IOException {
    // System.out.println("Running test for Accessibility");
    driver.get("http://www.disasterassistance.gov/help/accessibility");
    Header.run(driver, page);
    accessibility(driver, page);
    SendEmail.run(driver);
    Footer.run(driver, page);

    RunTest.translate(driver);
    String spanishPage = page + " - Spanish";

    Header.run(driver, spanishPage);
    accessibility(driver, spanishPage);
    SendEmail.run(driver);
    Footer.run(driver, spanishPage);

    driver.get("http://www.disasterassistance.gov/");
  }