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

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSetting.xml");
            loginHelper = new AttendeeLoginHelper(GetWebDriver());
            profileHelper = new ProfileHelper(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 my Profile
            profileHelper.ClickElement("MyProfile");

            //wait for text
            profileHelper.WaitForTextInPage("User Bio", 20);

            //Enter Address1
            profileHelper.type("Address1", "3090 S Jamaica Ct");

            //Enter Address2
            profileHelper.type("Address2", "Suite 313");

            //Enter city
            profileHelper.type("City", "Denver");

            //Enter Zip
            profileHelper.type("Zip", ",80014");

            profileHelper.ClickElement("Zip");

            //Click on Save button
            profileHelper.performClick("CancelBio");

               //refresh page
            RefreshPage();

            //wait for text
            profileHelper.WaitForTextInPage("User Bio", 20);

            //Verify saved first name
            profileHelper.verifyfieldText("Address1", "");

            //Verify saved Last name
            profileHelper.verifyfieldText("Address2", "");

            //Verify Saved company
            profileHelper.verifyfieldText("City", "");

            //Verify saved job title
            profileHelper.verifyfieldText("Zip", "");

            //Logout from the application
            Logout();

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

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

            username = loginHelper.GetFromFile("Register");
            password = oXMLData.getData("settings/credentials", "AttendeePassword");

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

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

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

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

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

            //Click on my Profile
            profileHelper.ClickElement("MyProfile");

            //wait for text
            profileHelper.WaitForTextInPage("User Bio", 20);

            //Enter First name
            profileHelper.type("Firstname", "Test Updated");

            //Enter Last name
            profileHelper.type("LastName", "Automation Updated");

            //Enter company
            profileHelper.type("Company", "Testing Updated");

            //Ente job title
            profileHelper.type("JobTitle", "Senior QA");

            //Enter BIO
            //profileHelper.typeDescription("user-Biography_ifr", "This is Updated BIO of the user.");

            profileHelper.ClickElement("JobTitle");

            //Click on Save button
            profileHelper.performClick("CancelBio");

               //refresh page
            RefreshPage();

            //wait for text
            profileHelper.WaitForTextInPage("User Bio", 20);

            //Verify saved first name
            profileHelper.verifyfieldText("Firstname", "Aman");

            //Verify saved Last name
            profileHelper.verifyfieldText("LastName", "Khan");

            //Verify Saved company
            profileHelper.verifyfieldText("Company", "Testing");

            //Verify saved job title
            profileHelper.verifyfieldText("JobTitle", "QA");

            //Logout from the application
            Logout();

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

            XMLParse oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSetting.xml");
            loginHelper = new AttendeeLoginHelper(GetWebDriver());
            profileHelper = new ProfileHelper(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 my Profile
            profileHelper.ClickElement("MyProfile");

            //wait for text
            profileHelper.WaitForTextInPage("User Bio", 20);

            //Enter First name
            profileHelper.type("Firstname", "Test Updated");

            //Enter Last name
            profileHelper.type("LastName", "Automation Updated");

            //Enter company
            profileHelper.type("Company", "Testing Updated");

            //Ente job title
            profileHelper.type("JobTitle", "Senior QA");

            //Enter BIO
            profileHelper.typeDescription(0, "This is Updated BIO of the user.");

            profileHelper.ClickElement("JobTitle");

            //Click on Save button
            profileHelper.performClick("SaveBio");

            //Wait for text
            profileHelper.WaitForTextInPage("Your User Bio has successfully been saved.", 20);

            //Verify saved first name
            profileHelper.verifyfieldText("Firstname", "Test Updated");

            //Verify saved Last name
            profileHelper.verifyfieldText("LastName", "Automation Updated");

            //Verify Saved company
            profileHelper.verifyfieldText("Company", "Testing Updated");

            //Verify saved job title
            profileHelper.verifyfieldText("JobTitle", "Senior QA");

            //Reset details to deault

            //Enter First name
            profileHelper.type("Firstname", "Test");

            //Enter Last name
            profileHelper.type("LastName", "Automation");

            //Enter company
            profileHelper.type("Company", "Testing");

            //Ente job title
            profileHelper.type("JobTitle", "QA");

            //Click on Save button
            profileHelper.performClick("SaveBio");

            //Wait for text
            profileHelper.WaitForTextInPage("Your User Bio has successfully been saved.", 20);

            //Logout from the application
            Logout();

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

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

            username = loginHelper.GetFromFile("Register");
            password = oXMLData.getData("settings/credentials", "AttendeePassword");

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

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

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

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

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

            //Click on my Profile
            profileHelper.ClickElement("MyProfile");

            //wait for text
            profileHelper.WaitForTextInPage("User Bio", 20);

            //Enter Address1
            profileHelper.type("Address1", "3090 S Jamaica Ct");

            //Enter Address2
            profileHelper.type("Address2", "Suite 313");

            //Enter city
            profileHelper.type("City", "Denver");

            //Enter Zip
            profileHelper.type("Zip", ",80014");

            profileHelper.ClickElement("Zip");

            //Click on Save button
            profileHelper.performClick("SaveAddress");

            //Wait for text
            profileHelper.WaitForTextInPage("Your Address has successfully been saved.", 20);

            //Verify saved Address1
            profileHelper.verifyfieldText("Address1", "3090 S Jamaica Ct");

            //Verify saved Address2
            profileHelper.verifyfieldText("Address2", "Suite 313");

            //Verify saved City
            profileHelper.verifyfieldText("City", "Denver");

            //Verify Saved Zip
            profileHelper.verifyfieldText("Zip", ",80014");

            //Reset details to deault

            //Enter Address1
            profileHelper.type("Address1", "");

            //Enter Address2
            profileHelper.type("Address2", "");

            //Enter City
            profileHelper.type("City", "");

            //Ente Zip
            profileHelper.type("Zip", ",");

            //Click on Save button
            profileHelper.performClick("SaveAddress");

            //Wait for text
            profileHelper.WaitForTextInPage("Your Address has successfully been saved.", 20);

            //Logout from the application
            Logout();

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