public void loginValidation()
        {
            string[] username = null;
            string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSetting.xml");
            loginHelper = new AttendeeLoginHelper(GetWebDriver());

            String username1 = "";
            String password1 = "";

            //Verify Page title
            verifyTitle("Attendee.Events - Log in");

            //Login with Blank fields
            Login(username1, password1);
            Console.WriteLine("Logged in as: " + username1 + " / " + password1);

            //Click on sigin button
            loginHelper.ClickElement("Signin");

            //Verify Validation messgae
            loginHelper.VerifyPageText("The Email field is required");
            loginHelper.VerifyPageText("The Password field is required");

            password1 = "1qaz!QAZ";

            //Login without Username
            Login(username1, password1);

            //Click on sigin button
            loginHelper.ClickElement("Signin");

            //Verify Validation messgae
            loginHelper.VerifyPageText("The Email field is required");

            username1 = "*****@*****.**";
            password1 = "";

            //Login without Password
            Login(username1, password1);

            //Click on sigin button
            loginHelper.ClickElement("Signin");

            //Verify Validation messgae
            loginHelper.VerifyPageText("The Password field is required");

            username1 = "*****@*****.**";
            password1 = "invalid";

            //Login after invalid credentials Password
            Login(username1, password1);

            //Click on sigin button
            loginHelper.ClickElement("Signin");

            //Verify Validation messgae
            loginHelper.VerifyPageText("Invalid login attempt");

            username = oXMLData.getData("settings/credentials", "AttendeeUsername");
            password = oXMLData.getData("settings/credentials", "AttendeePassword");

            //Login after valid credentials Password
            Login(username[0], password[0]);

            //Click on sigin button
            loginHelper.ClickElement("Signin");

            //Verify Page title
            verifyTitle("Event List");

            //Verify Home Page
            loginHelper.verifyElementPresent("Home");

            //Click on user-id
            loginHelper.ClickElement("ClickId");

            //Logout from the application.
            loginHelper.ClickElement("LogOut");

            //Capture screenshot fot the screen
            loginHelper.TakeScreenshot("LoginValidation - Attendee");
        }
        public void changePasswordValidation()
        {
            string[] username = null;
            string[] password = null;

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSetting.xml");
            loginHelper = new AttendeeLoginHelper(GetWebDriver());

            username = oXMLData.getData("settings/credentials", "AttendeeUsername");
            password = oXMLData.getData("settings/credentials", "AttendeePassword");

            //Verify Page title
            verifyTitle("Attendee.Events - Log in");

            //Login with email address
            Login(username[0], password[0]);
            Console.WriteLine("Logged in as: " + username[0] + " / " + password[0]);

            //Click on sigin button
            loginHelper.ClickElement("Signin");

            //Verify Page title
            verifyTitle("Event List");

            //Click on user-id
            loginHelper.ClickElement("ClickId");

            //Click on Change Password
            loginHelper.ClickElement("ChangePassword");

            //Wait for text
            loginHelper.WaitForTextInPage("Confirm Password", 30);

            //Click on Change password without any field.
            loginHelper.ClickElement("ChangeSave");

            //Verify Validation message
            loginHelper.VerifyPageText("The Current password field is required.");
            loginHelper.VerifyPageText("The New password field is required.");

            //Enter Wrong current password
            loginHelper.type("CurrentPassword", "WrongPassword");

            //Enter New password
            loginHelper.type("NewPassword", "NewPassword");

            //Enter Confirm password
            loginHelper.type("ConfirmPasswor", "NewPassword");

            //Click on Change password after entering wrong password
            loginHelper.ClickElement("ChangeSave");

            //Wait for text
            loginHelper.WaitForTextInPage("Incorrect password.", 30);

            //Verify validation message
            loginHelper.VerifyPageText("Incorrect password.");

            //Enter Correct current password
            loginHelper.type("CurrentPassword", password[0]);

            //Enter New password
            loginHelper.type("NewPassword", "newpassword");

            //Enter Confirm password
            loginHelper.type("ConfirmPasswor", "NewPassword");

            //Click on Change password after entering diffecrent passwords
            loginHelper.ClickElement("ChangeSave");

            //verify validation message
            loginHelper.VerifyPageText("The new password and confirmation password do not match.");

            //Logout from the application
            Logout();

            //Verify title
            verifyTitle("Attendee.Events - Log in");

            //Capture screenshot fot the screen
            loginHelper.TakeScreenshot("ChangePassword - Attendee");
        }