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 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");
        }