Example #1
0
  public void VerifyDateShowInfoColumn() throws Exception {

    Reporter.log("Verify column headers present of 'Date', 'Show', and 'Information'.");
    List<WebElement> allColumns = waitFor.ElementsVisible(ProgramGuideTbl_Cls);
    Assert.assertTrue(allColumns.get(0).getText().contains("Date"));
    Assert.assertTrue(allColumns.get(1).getText().contains("Show"));
    Assert.assertTrue(allColumns.get(2).getText().contains("Information"));
  }
Example #2
0
  public void VerifyProgramGuideContainsShows() throws Exception {

    Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
    if (calendar.get(Calendar.HOUR_OF_DAY) < 18 && calendar.get(Calendar.HOUR_OF_DAY) > 14) {
      Reporter.log("Verify that there is at least one show in the program guide table.");
      List<WebElement> allRows = waitFor.ElementsVisible(ProgramGuideTbl_Rws);
      boolean showPresent = false;
      for (WebElement row : allRows) {
        if (!row.getText().contains("Network Programming")) {
          showPresent = true;
          break;
        }
      }
      if (showPresent == false) {
        Assert.fail("No shows present in the Program Guide.");
      }
    } else {
      Reporter.log("After 8pm, show availability limited.");
    }
  }
Example #3
0
  public void ProgramGuideRunCronStatus() throws Exception {

    Reporter.log("Verify Cron Status contains data url '" + DataURL + "'.");
    waitFor.ElementContainsText(ProgramGuideRunCronStatus_Sts, DataURL);
  }
Example #4
0
  public void VerifyProgramGuideText() throws Exception {

    Reporter.log("Verify home page program guide contains text 'Program Guide'.");
    waitFor.ElementVisible(ProgramGuideTextOnHomePage_Lbl);
  }
Example #5
0
  public void ClickSaveConfigBtn() throws Exception {

    Reporter.log("Click the 'Save Configuration' button.");
    interact.Click(waitFor.ElementVisible(SaveConfiguration_Btn));
  }
Example #6
0
  // PAGE OBJECT METHODS
  public void EnterDataURL() throws Exception {

    Reporter.log("Enter '" + DataURL + "' in the 'Data URL' text box.");
    interact.Type(waitFor.ElementVisible(DataURL_Txb), DataURL);
  }