public void changePasswordValidation()
        {
            Console.WriteLine("_05ChangePasswordValidation");

            string username = "";
            string[] password = null;

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

            //username = oXMLData.getData("settings/credentials", "Artzyusername");
            username = loginHelper.GetFromFile("Registration");

            password = oXMLData.getData("settings/credentials", "Artzypassword");

            //Verify Page title
            verifyTitle("Artzy Login");

            //Login with email address
            Login(username, password[0]);

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

            //Verify Page title
            verifyTitle("Index");

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

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

            //Verify title
            verifyTitle("Change Password");

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

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

            //Verify Validation message
            loginHelper.VerifyPageText("Please enter current password");
            loginHelper.VerifyPageText("Please enter new password");

            //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.");

            //Logout from the application
            Logout();

            //Capture screenshot fot the screen
            loginHelper.TakeScreenshot("ChangePassword - Artzy");
        }
        public void checkBuyTicket()
        {
            Console.WriteLine("_17CheckBuyTicket");

            string username = "";
            string[] password = null;

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

            String eventName = loginHelper.GetFromFile("EventName");

            //username = oXMLData.getData("settings/credentials", "Artzyusername");
            username = loginHelper.GetFromFile("Registration");

            password = oXMLData.getData("settings/credentials", "Artzypassword");

            //Verify Page title
            verifyTitle("Artzy Login");

            //Login with email address
            Login(username, password[0]);

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

            //Verify Page title
            verifyTitle("Index");

            //Click on on Home tab
            eventHelper.ClickElement("Home");

            //Wait for text
            eventHelper.WaitForTextInPage("Cart", 40);

            //Click on Event tab.
            eventHelper.ClickElement("EventTab");

            //Verify title
            verifyTitle("Upcoming Events");

            //Click on event
            eventHelper.clickOnEvent(eventName);

            //wait for tickets
            eventHelper.WaitForTextInPage("Tickets", 20);

            //Enter quantity
            eventHelper.type("Quantity", "10");

            //Click ON  Buy now button
            eventHelper.ClickElement("BuyNow");

            //wait for text
            eventHelper.WaitForTextInPage("Remove", 30);

            //Enter card number
            eventHelper.type("Card", "4242424242424242");

            //Enter cvv
            eventHelper.type("CVV", "321");

            eventHelper.scrollToElement("Month");

            //Select Month
            eventHelper.SelectLastFilterValue("Month", "05 - May");

            //Select year
            eventHelper.SelectValueFilter("Year", "2019");

            //Enter address
            eventHelper.type("CardAdd", "Test Add");

            //Enter city
            eventHelper.type("CardCity", "Alaska");

            //Select State
            eventHelper.SelectValueFilter("CardState", "Alaska");

            //Enter Zip
            eventHelper.type("CardZip", "201301");

            //Click on Submit button
            eventHelper.ClickElement("Submit");

            //Wait for order code
            eventHelper.WaitForTextInPage("Order Code:", 30);

            //Wait for event name
            eventHelper.WaitForTextInPage(eventName, 20);

            //Wait for status
            eventHelper.WaitForTextInPage("Paid", 10);

            //Click on menu
            loginHelper.ClickElement("OrderLog");

            //Click on My ticket
            loginHelper.ClickElement("MyTicket");

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

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

            //Wait for ticket
            loginHelper.WaitForTextInPage("10",30);

            //Capture screenshot fot the screen
            loginHelper.TakeScreenshot("CheckBuyTicket - Artzy");
        }
        public void changePassword()
        {
            Console.WriteLine("_04ChangePassword");

            string username = "";
            string[] password = null;

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

            //username = oXMLData.getData("settings/credentials", "Artzyusername");
            username = loginHelper.GetFromFile("Registration");

            password = oXMLData.getData("settings/credentials", "Artzypassword");

            //Verify Page title
            verifyTitle("Artzy Login");

            //Login with email address
            Login(username, password[0]);

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

            //Verify Page title
            verifyTitle("Index");

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

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

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

            //Verify title
            verifyTitle("Change Password");

            //Enter 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 button
            loginHelper.ClickElement("ChangeSave");

            //Wait for text
            loginHelper.WaitForTextInPage("Password has been changed successfully.", 30);

            //Logout from the application
            Logout();

            //wait for text
            loginHelper.WaitForTextInPage("Use your email to sign in.", 30);

            //Verify Page title
            verifyTitle("Artzy Login");

            String Password1 = "NewPassword";
            //Login with New Password
            Login(username, Password1);

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

            //Change Password to deault

            //wait for text
            //loginHelper.WaitForTextInPage(username, 30);

            //Verify Page title
            loginHelper.verifyTitle("Index");

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

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

            //Verify title
            verifyTitle("Change Password");

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

            //Enter Current password
            loginHelper.type("CurrentPassword", Password1);

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

            //Enter Confirm password
            loginHelper.type("ConfirmPasswor", password[0]);

            //Click on Change password button
            loginHelper.ClickElement("ChangeSave");

            //Wait for text
            loginHelper.WaitForTextInPage("Password has been changed successfully.", 30);

            //Logout from the application
            Logout();

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