/**
  * This is constructor for this class. It validates that the user is on Shakeology And Supplements
  * Page.
  *
  * @param selenium
  */
 public ShakeologyAndSupplementsPage(LoggingSelenium selenium) {
   selenium.logComment("Executing constructor of Shakeology And Supplements Page");
   this.selenium = selenium;
   assertTrue(
       "This is not Shakeology And Supplements Page of logged in user, current page "
           + selenium.getLocation(),
       selenium.getTitle().equals("Team Beachbody - Eat Smart: Supplements"),
       selenium);
 }
Пример #2
0
  /**
   * This is constructor for this class. It validates that the user is on Meal Plans Page.
   *
   * @param selenium
   */
  public MealPlansPage(LoggingSelenium selenium) {
    selenium.logComment("Executing constructor of Meal Plans Page");
    this.selenium = selenium;

    assertTrue(
        "This is not Meal Plans Page of logged in user, current page " + selenium.getLocation(),
        selenium.getTitle().equals("Meal Plans"),
        selenium);
  }
 /**
  * This is constructor for this class. It validates that the user is on The Beachbody Challenge
  * Page.
  *
  * @param selenium
  */
 public TheBeachbodyChallengePage(LoggingSelenium selenium) {
   selenium.logComment("Executing constructor of Beachbody Challenge Page");
   this.selenium = selenium;
   assertTrue(
       "This is not The Beachbody Challenge Page of logged in user, current page "
           + selenium.getLocation(),
       selenium.getTitle().equals("Team Beachbody - The Beachbody Challenge"),
       selenium);
 }