Package test.pageobject_example.pages

Examples of test.pageobject_example.pages.VimeoJoinPage


   * Expected result: Successfully signed up,
   *                  and profile page displayed with first_and_LastName
   */
  @Test
  public void testSignupSuccess(){
    VimeoJoinPage joinPage = new VimeoJoinPage(driver);
    //go to page
    joinPage.open();
   
    //enter data
    joinPage.enterFirst_and_LastName(first_and_LastName);
    joinPage.enterEmail(email);
    joinPage.enterPassword(password);
    joinPage.clickAcceptTOS();

    //submit form
    VimeoSignupPage signupPage = joinPage.submitForm();
   
    //Verify signup success: signup page title should be equal
    assertTrue("Sign up successful" , signupPage.isPageLoad());
   
    //Go to the profile page and get the profile name
View Full Code Here


  @Test
  public void testSignupInvalidEmailErrors(){
    //invalid-format-email address
    String inValidEmail = "chon.email.com";

    VimeoJoinPage joinPage = new VimeoJoinPage(driver);
    //go to page
    joinPage.open();

    //enter data
    joinPage.enterFirst_and_LastName(first_and_LastName);
    joinPage.enterEmail(inValidEmail);
    joinPage.enterPassword(password);
    joinPage.clickAcceptTOS();

    //submit form
    joinPage.submitForm();
       
    //Verify: the Valid Email error message displayed
    assertTrue("Verify: the Valid Email error message displayed.",
           joinPage.verifyErrorMessageRequired_ValidEmail_displayed());


    //logout for the next test.
    VimeoLogoutPage.logOut(driver);
  }
View Full Code Here

   *  Test the signup page with missing password.
   *  Expected result: "Please enter your password" displayed
   */
  @Test
  public void testSignupNo_password(){
    VimeoJoinPage joinPage = new VimeoJoinPage(driver);
    //go to page
    joinPage.open();

    //enter data
    joinPage.enterFirst_and_LastName(first_and_LastName);
    joinPage.enterEmail(email);
   
    //No password input
   
    joinPage.clickAcceptTOS();

    //submit form
    joinPage.submitForm();

    //Verify the require password message displayed
    assertTrue("Verify the require password message displayed.",
           joinPage.verifyErrorMessageRequired_Password_displayed());

       
    //logout for the next test.
    VimeoLogoutPage.logOut(driver);
  }
View Full Code Here

TOP

Related Classes of test.pageobject_example.pages.VimeoJoinPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.