public void registrationValidation() { XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSetting.xml"); Console.WriteLine("_10RegistrationValidation"); RegisterHelper registerHelper = new RegisterHelper(GetWebDriver()); loginHelper = new AttendeeLoginHelper(GetWebDriver()); //Wait for text registerHelper.WaitForTextInPage("Create one now!", 60); //Click on Create one-now link registerHelper.ClickElement("AccountCreate"); //Wait for text registerHelper.WaitForTextVisible("Already have an account", 60); //Click on Create new account button registerHelper.ClickElement("CreateNew"); //verify validation message loginHelper.WaitForTextInPage("Please accept the terms and conditions to create an account.", 30); //Capture screenshot fot the screen loginHelper.TakeScreenshot("Registration - Attendee"); }
public void registrationValidation() { String email = "amanAutomationTest" + AlwaysRandom() + "@yopmail.com"; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSetting.xml"); Console.WriteLine("_1RegistrationValidation"); RegisterHelper registerHelper = new RegisterHelper(GetWebDriver()); loginHelper = new AttendeeLoginHelper(GetWebDriver()); //Wait for text registerHelper.WaitForTextInPage("Forgot password?", 30); //Click on Create without any details registerHelper.performClick("AccountCreate"); //wait for text registerHelper.WaitForTextInPage("Create a new account", 60); //Click on Create without any details registerHelper.ClickElement("CreateNew"); //Verify Validation message registerHelper.WaitForTextInPage("Please accept the terms and conditions to create an account", 30); //Check the terms. registerHelper.ClickElement("CheckClick"); //Click on Create without any details registerHelper.ClickElement("CreateNew"); //Verify Validation message registerHelper.VerifyPageText("The First Name field is required"); registerHelper.VerifyPageText("The Last Name field is required."); registerHelper.VerifyPageText("The Email field is required."); registerHelper.VerifyPageText("The Password field is required."); //Enter invalid email id registerHelper.type("UserEmail", "InvalidEmailID"); //Check the terms. registerHelper.ClickElement("CheckClick"); //Click on Create after entering invalid email id registerHelper.ClickElement("CreateNew"); //Verify Validation message registerHelper.VerifyPageText("The Email field is not a valid e-mail address."); //Capture screenshot fot the screen loginHelper.TakeScreenshot("RegistrationValidation - Attendee"); }
public void registration() { String email = "Aman" + AlwaysRandom() +"@yopmail.com"; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSetting.xml"); Console.WriteLine("_1Registration"); RegisterHelper registerHelper = new RegisterHelper(GetWebDriver()); loginHelper = new AttendeeLoginHelper(GetWebDriver()); //Wait for text registerHelper.WaitForTextInPage("Create one now!", 60); //Click on Create one-now link registerHelper.ClickElement("AccountCreate"); //Wait for text registerHelper.WaitForTextVisible("Already have an account", 60); //Fill first name registerHelper.type("FirstName", "Aman"); //Fill last name registerHelper.type("LastName", "Khan"); //Enter the email registerHelper.type("UserEmail", email); //Enter the password registerHelper.type("Password", "1qaz!QAZ"); //Enter the confirm password registerHelper.type("ConfirmPassword", "1qaz!QAZ"); //Check the check box registerHelper.ClickElement("CheckClick"); //Click on Create new account button registerHelper.ClickElement("CreateNew"); //Verify page title verifyTitle("Event List"); //Logout from the application Logout(); registerHelper.SetInFile("Register", email); //Capture screenshot fot the screen loginHelper.TakeScreenshot("Registration - Attendee"); }
public void registrationValidation1() { String email = "Aman" + AlwaysRandom() +"@yopmail.com"; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSetting.xml"); Console.WriteLine("_1Registration"); RegisterHelper registerHelper = new RegisterHelper(GetWebDriver()); loginHelper = new AttendeeLoginHelper(GetWebDriver()); //Wait for text registerHelper.WaitForTextInPage("Create one now!", 60); //Click on Create one-now link registerHelper.ClickElement("AccountCreate"); //Wait for text registerHelper.WaitForTextVisible("Already have an account", 60); //Fill first name registerHelper.type("FirstName", "Aman"); //Fill last name registerHelper.type("LastName", "Khan"); //Enter the email registerHelper.type("UserEmail", email); //Enter the password registerHelper.type("Password", "1qaz!QAZ"); //Enter the confirm password registerHelper.type("ConfirmPassword", "1qaz!QZ"); //Click on Create new account button registerHelper.ClickElement("CreateNew"); //verify validation message for password loginHelper.WaitForTextInPage("The password and confirmation password do not match.", 30); //Capture screenshot fot the screen loginHelper.TakeScreenshot("Registration - Attendee"); }
public void registrationValidation() { String email = "amanAutomationTest" + AlwaysRandom() + "@yopmail.com"; XMLParse oXMLData = new XMLParse(); oXMLData.LoadXML("../../Config/ApplicationSetting.xml"); RegisterHelper registerHelper = new RegisterHelper(GetWebDriver()); loginHelper = new AttendeeLoginHelper(GetWebDriver()); //Wait for text registerHelper.WaitForTextInPage("Forgot password?", 30); //Click on Create without any details registerHelper.performClick("AccountCreate"); //wait for text registerHelper.WaitForTextInPage("Create a new account", 60); //Click on Create without any details registerHelper.ClickElement("CreateNew"); //Verify Validation message registerHelper.WaitForTextInPage("Please accept the terms and conditions to create an account", 30); //Check the terms. registerHelper.ClickElement("CheckClick"); //Click on Create without any details registerHelper.ClickElement("CreateNew"); //Verify Validation message registerHelper.VerifyPageText("The First Name field is required"); registerHelper.VerifyPageText("The Last Name field is required."); registerHelper.VerifyPageText("The Email field is required."); registerHelper.VerifyPageText("The Password field is required."); //Enter invalid email id registerHelper.type("UserEmail", "InvalidEmailID"); //Check the terms. registerHelper.ClickElement("CheckClick"); //Click on Create after entering invalid email id registerHelper.ClickElement("CreateNew"); //Verify Validation message registerHelper.VerifyPageText("The Email field is not a valid e-mail address."); //Fill first name registerHelper.type("FirstName", "Aman"); //Fill last name registerHelper.type("LastName", "Khan"); //Enter the email registerHelper.type("UserEmail", email); //Enter the password registerHelper.type("Password", "1qaz!QAZ"); //Enter the confirm password registerHelper.type("ConfirmPassword", "1qaz!QAZ"); //Check the check box registerHelper.ClickElement("CheckClick"); //Click on Create new account button after entering valid details registerHelper.ClickElement("CreateNew"); //wait for text registerHelper.WaitForTextInPage(email,60); //Verify page title verifyTitle("Event List"); //Logout from the application Logout(); //Capture screenshot fot the screen loginHelper.TakeScreenshot("RegistrationValidation - Attendee"); }