public void uploadProfilePicture()
        {
            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");

            String imagePath = GetPathtoUpload() + "//TestProfile.jpg";

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

            //Click on Change Avatar
            profileHelper.ClickElement("Avtar");

            //wait for text
            profileHelper.WaitForTextInPage("New Avatar",30);

            //Upload Image
            profileHelper.uploadImage("UploadImage", imagePath);

            //Click on save button.
            profileHelper.performClick("SaveImage");

            //Wait for text
            profileHelper.WaitForTextInPage("Your Avatar is being saved", 30);

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

            loginHelper.WaitForElementEnabled("ClickId", 30);

            //Capture screenshot fot the screen
            loginHelper.TakeScreenshot("UploadProfilePicture");
        }
        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 updateProfileEmail()
        {
            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");

            //Click on Add new email button.
            profileHelper.performClick("AddEmail");

            //Click on Save button without entering email
            profileHelper.performClick("SaveEmail");

            //Verif vaidation message.
            profileHelper.WaitForTextInPage("There are missing email addresses. If you want to remove an email address click the delete button",20);

            //Enter Email
            profileHelper.typeInLastElement("EmailInput", "*****@*****.**");

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

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

            //Reset details to deault

            //Delete phone number
            profileHelper.clickLastElement("DeleteEmail");

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

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

            //Logout from the application
            Logout();

            //Capture screenshot fot the screen
            loginHelper.TakeScreenshot("UpdateProfileEmail - 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 updateProfilePhone()
        {
            string username = "";
            string[] password = null;

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

            //wait for text
            loginHelper.WaitForTextInPage("My Event List", 60);

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

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

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

            //scroll
            profileHelper.scrollToElement("Set");

            //Click on Add new Phone button.
            profileHelper.ClickElement1("AddPhone");

            //profileHelper.ClickElement("AddPhone");

            //wait
            //eventHelper.WaitForWorkArround(3000);

            //enter area code
            profileHelper.typeInLastElement("areacode", "111");

            //Enter phone number
            profileHelper.typeInLastElement("PhoneNumber", "1234567890");

            //Enter Phone Ext
            profileHelper.typeInLastElement("PhoneExt", "911");

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

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

            //Reset details to deault

            //Delete phone number
               // profileHelper.clickLastElement("DeletePhone");

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

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

            //Logout from the application
            Logout();

            //Capture screenshot fot the screen
            loginHelper.TakeScreenshot("UpdateProfilePhone - 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 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");
        }