public void fieldDictionaryFields()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to Field Dictionary Fields page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/fields");

            //Verify Title
            VerifyTitle("Field Management");

               //Select Module
            partnerAgentHelperNewSkin.SelectByText("FSModule", "Clients");

            partnerAgentHelperNewSkin.WaitForWorkAround(3000);

            //Select Tab
            partnerAgentHelperNewSkin.SelectByText("FSTab", "Company Details");

            //Click on Search Button
            partnerAgentHelperNewSkin.ClickElement("FSSearch");

            //Verify field availabe
            partnerAgentHelperNewSkin.verifyElementPresent("FSFilter");

            //Enter  mail
            partnerAgentHelperNewSkin.TypeText("FSFilter", "Mail");

            //Click on Mail
            partnerAgentHelperNewSkin.ClickElement("FSMail");

            //Verify Manage button available
            partnerAgentHelperNewSkin.verifyElementPresent("FSManage");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
Пример #2
0
        public void createClientError()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //navigate to the Create client page.
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/clients/create");

            //verify title
            VerifyTitle("Create a Client");

            //Select Status
            partnerAgentHelperNewSkin.SelectByText("ClientStatus", "Agreement");

            //Select Responsibility
            partnerAgentHelperNewSkin.SelectByText("ClientRespo", "Aslam Khan");

            //Click on Company details tab
            partnerAgentHelperNewSkin.ClickElement("ClientCompany");

            //Verify field available for company DBA name
            partnerAgentHelperNewSkin.verifyElementPresent("ClientDBAName");

            //Enter DBA name
            partnerAgentHelperNewSkin.TypeText("ClientDBAName", "DBA");

            //Enter legal name
            partnerAgentHelperNewSkin.TypeText("ClientLegalName", RandomNumber(1,1000).ToString());

            //Click on Save button
            partnerAgentHelperNewSkin.ClickElement("OfficeSave");

            //Verify error not displayed
            partnerAgentHelperNewSkin.VerifyTextNotPresent("Already Exist");
        }
        public void meetingClientEmail()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to Create Meeting page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/meetings/create");

            //Verify title
            VerifyTitle("Create a Meeting");

            //Select Releted to
            partnerAgentHelperNewSkin.SelectByText("ReletedTo", "Client");

            //Click on Assign icon
            partnerAgentHelperNewSkin.ClickElement("AssignMeeting");
            partnerAgentHelperNewSkin.WaitForWorkAround(5000);

            //Click on User
            partnerAgentHelperNewSkin.ClickElement("AssignedUser");
            partnerAgentHelperNewSkin.WaitForWorkAround(5000);

            //Verify email displayed
            partnerAgentHelperNewSkin.verifyElementAvailable("EmailField");

               //Select Releted to
            partnerAgentHelperNewSkin.SelectByText("ReletedTo", "Lead");

            //Verify email removed
            partnerAgentHelperNewSkin.verifyElementNotAvailable("EmailField");

            //Logout from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
Пример #4
0
        public void createUserError1()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");

            //Go to Create user page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/users/create");

            //Verify title
            VerifyTitle("Create User");

            //Select User type
            partnerAgentHelperNewSkin.SelectByText("Usertype", "Employee");

            //Click on Create new
            partnerAgentHelperNewSkin.ClickElement("UserCreate");

            //Enter first name
            partnerAgentHelperNewSkin.TypeText("UserFirstName", "Aslam");

            //Enter last Name
            partnerAgentHelperNewSkin.TypeText("UserLastName", "Khan");

            //Enter existing user name
            partnerAgentHelperNewSkin.TypeText("Userusername", username[0]);

            //Enter primary email
            partnerAgentHelperNewSkin.TypeText("UserEmail", "*****@*****.**");

            //Click on 'Save' button
            partnerAgentHelperNewSkin.ClickElement("UserSave");

            //Wait for text
            partnerAgentHelperNewSkin.WaitForText("This username already taken", 50);

            //Verify error not displayed
            partnerAgentHelperNewSkin.VerifyTextNotPresent("Internal server error page");

            //Logout from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
Пример #5
0
        public void additionalFilter()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to payment page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/rir/detailed_payouts");

            //verify title
            VerifyTitle("Residual Income - Payouts");

            //Click on Filter
            partnerAgentHelperNewSkin.ClickElement("Advance");

            //Wait for text
            partnerAgentHelperNewSkin.WaitForText("Filter By Additional Fields", 20);

            //Verify User is able to select TransactionFile
            partnerAgentHelperNewSkin.SelectByText("TraFile", "Amex Return Sales");
            partnerAgentHelperNewSkin.SelectByText("TraFile", "Amex Return Transactions");
            partnerAgentHelperNewSkin.SelectByText("TraFile", "Assessment Fee");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void manageMultipleSysprins()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to office code management
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/office_codes_management");

            //Verify title
            VerifyTitle("Office Codes Management");

             //Select Sysprins
            partnerAgentHelperNewSkin.SelectByText("SelectSys", "Sysprins");
            partnerAgentHelperNewSkin.WaitForWorkAround(3000);

            //Enter value1
            partnerAgentHelperNewSkin.TypeText("Value1", GetRandomNumber().ToString());

            partnerAgentHelperNewSkin.WaitForWorkAround(1000);

            //Click on Add button
            partnerAgentHelperNewSkin.ClickElement("AddAnother");

            //Enter value2
            partnerAgentHelperNewSkin.TypeText("Value2", GetRandomNumber().ToString());

            partnerAgentHelperNewSkin.WaitForWorkAround(1000);

            //Click on Save button
            partnerAgentHelperNewSkin.ClickElement("RMPSave");
            //Click on Save button
            partnerAgentHelperNewSkin.WaitForText("Office codes updated successfully.", 30);
        }
Пример #7
0
        public void sysPRNIssue1()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to office code management
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/office_codes_management");

            //Verify title
            VerifyTitle("Office Codes Management");

             //Select Sysprins
            partnerAgentHelperNewSkin.SelectByText("SelectSys", "Sysprins");
            partnerAgentHelperNewSkin.WaitForWorkAround(3000);

            //Enter value1
            partnerAgentHelperNewSkin.TypeText("Value1", GetRandomNumber().ToString());

            //Click on Add button
            partnerAgentHelperNewSkin.ClickElement("AddAnother");

            partnerAgentHelperNewSkin.WaitForWorkAround(1000);

               //Click on Second primary option
            partnerAgentHelperNewSkin.ClickElement("SecOp");

            //Click on Save button
            partnerAgentHelperNewSkin.ClickElement("RMPSave");
            partnerAgentHelperNewSkin.WaitForWorkAround(3000);

            // verify error not displayed
            //partnerAgentHelperNewSkin.VerifyTextNotAvailable("blank Sys/Prin Number has been removed and now there is no longer a Primary Sys/Prin");
        }
        public void residualAdjustmentTool()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to Create Residual Adjustment Tool page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/rir/create");

            //Verify title
            VerifyTitle("Residual Master Rules - Create Adjustments");

            //Click on 'Save' button without filling any field
            partnerAgentHelperNewSkin.ClickElement("RMPSave");

            //Verify error message
            partnerAgentHelperNewSkin.verifyElementPresent("RMPProcessorError");
            partnerAgentHelperNewSkin.verifyElementPresent("RMPSetNameError");

            //Select Processor
            partnerAgentHelperNewSkin.SelectByText("RMPProcessor", "Chy Processor");

            //Click on 'Save' button after selecting Processor
            partnerAgentHelperNewSkin.ClickElement("RMPSave");

            //Verify error
            partnerAgentHelperNewSkin.verifyElementPresent("RMPSetNameError");

            //Select Ammount
            partnerAgentHelperNewSkin.SelectByText("RMPRule", "Amount");

            //Enter amount in alphabets
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "Alpha");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error displayed
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Enter amount in numeric
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "123");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Select Percantage
            partnerAgentHelperNewSkin.SelectByText("RMPRule", "Percentage");

            //Enter Percantage in alphabets
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "Alpha");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error displayed
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Enter Percantage in numeric
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "13");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error not displayed
            //            partnerAgentHelperNewSkin.verifyElementNotPresent("RMPRuleError");

            //Select Ammount
            partnerAgentHelperNewSkin.SelectByText("RMPRule", "Amount");

            //Enter Ammount upto 3 decimal
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "123.234");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error displayed
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Select Percantage
            partnerAgentHelperNewSkin.SelectByText("RMPRule", "Percentage");

            //Enter Percantage more than 100
            partnerAgentHelperNewSkin.TypeText("RMPRuleField", "1234");

            //Click on v
            partnerAgentHelperNewSkin.ClickElement("RMPRule");

            //Verify error displayed
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Click on Add another button.
            partnerAgentHelperNewSkin.ClickElement("RMPAddRule");

            //Verify Field added
            partnerAgentHelperNewSkin.verifyElementPresent("RMPRuleError");

            //Enter ammount
            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
Пример #9
0
        public void fieldDisError()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to Create template page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/field_grouping_templates");

            //Verify title
            VerifyTitle("Field Grouping Templates");

            //Click on 'Create' button
            partnerAgentHelperNewSkin.ClickElement("TemplateCreate");

            //Enter TemplateName
            partnerAgentHelperNewSkin.TypeText("TemplateName", "DemoTemplate");

            //Select Module
            partnerAgentHelperNewSkin.SelectByText("TemplaceModule", "Clients");

            partnerAgentHelperNewSkin.WaitForWorkAround(2000);

            //Select Tab
            partnerAgentHelperNewSkin.SelectByText("TemplateTab", "Company Details");

            partnerAgentHelperNewSkin.WaitForWorkAround(5000);
            //Select Field
            partnerAgentHelperNewSkin.SelectByText("TemplateField", "Company Legal Name");

            //Click on Add Button
            partnerAgentHelperNewSkin.ClickElement("TemplateAdd");

            //Click on Save button
            partnerAgentHelperNewSkin.ClickElement("OfficeSave");

            //Click on Delete icon
            partnerAgentHelperNewSkin.ClickElement("TemplateDelete");

            //Accept alert
            partnerAgentHelperNewSkin.AcceptAlert();

            //Verify error not displayed
            partnerAgentHelperNewSkin.VerifyTextNotPresent("An Internal Error Has Occurred");

            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }
        public void revenueShareInDecimalPartnerAgent()
        {
            string[] username = null;
            string[] password = null;

            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

            //Variable
            var name = "TestAgent" + GetRandomNumber();

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Click on Agent in Topmenu
            partnerAgentHelperNewSkin.MouseHover("ClickOnAgentTab");

            //################################# CREATE A agent   #############################################

            //Click on Click On Partner Agen
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/partners/agents");

            //verify title
            VerifyTitle("Partner Agents");

            //ClickOnRevenueShare
            partnerAgentHelperNewSkin.ClickElement("RevenueSahrnepartneragent");

               //Verify title
            VerifyTitle("Partner Agent Codes and Revenue Shares");

            //Click on Revenue Share Partner Agnet
            partnerAgentHelperNewSkin.ClickElement("AddANewAgentRevenueSahre");
            partnerAgentHelperNewSkin.WaitForWorkAround(5000);

            //SelectPartnerAgnetRS
            partnerAgentHelperNewSkin.SelectByText("SelectPartnerAgnetRS", "Chy Processor");

            //EnterPartnerCode
            var code = "1" + RandomNumber(99,999);
            partnerAgentHelperNewSkin.TypeText("EnterPartnerCode",code);

            //EnterPartnerCode
            var RS = "22." + RandomNumber(1,99);
            partnerAgentHelperNewSkin.TypeText("RevenueShare", RS);

            //ClickOnSaveRS
            partnerAgentHelperNewSkin.ClickElement("ClickOnSaveRS");
            partnerAgentHelperNewSkin.WaitForWorkAround(4000);

            //verify message Partner agent code & revenue share saved successfully.
            partnerAgentHelperNewSkin.WaitForText("revenue share saved successfully.",20);
            partnerAgentHelperNewSkin.WaitForWorkAround(4000);

               //Verify title
            VerifyTitle("Partner Agent Codes and Revenue Shares");

            //Enter Deciaml value
            partnerAgentHelperNewSkin.TypeText("SearchDeciaml", RS);
            partnerAgentHelperNewSkin.WaitForWorkAround(4000);

            //Verify value oin decimal
            partnerAgentHelperNewSkin.VerifyText("VerifyValueInDecimal", RS);
            partnerAgentHelperNewSkin.WaitForWorkAround(4000);
        }
Пример #11
0
        public void deleteEmployee()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username2");
            password = oXMLData.getData("settings/Credentials", "password2");
            log = oXMLData.getData("settings/URL", "logout");

            var name = "TestEmployee" + RandomNumber(0,99);

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to Employee page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/employees/create");

            //verify title
            VerifyTitle("Employees");

            //Enter name
            partnerAgentHelperNewSkin.TypeText("EmployeeUsername", name);

            //Enter email
            partnerAgentHelperNewSkin.TypeText("EmployeeEmail", name + "@yopmail.com");

            //Enter firstname
            partnerAgentHelperNewSkin.TypeText("EmployeeFirst", name);

            //Enter lastname
            partnerAgentHelperNewSkin.TypeText("EmployeeLast", "Last");

            //Check the box
            partnerAgentHelperNewSkin.ClickElement("EmployeeCheck");

            //Enter phone
            partnerAgentHelperNewSkin.TypeText("EmployeePhone", "(2134551231");

            //Enter e adree
            partnerAgentHelperNewSkin.TypeText("EmployeeEAddress", name + "@yopmail.com");

            //Click on save button
            partnerAgentHelperNewSkin.ClickElement("EmployeeSave");

            //Wait for text
            partnerAgentHelperNewSkin.WaitForText("Refresh",30);

            //Verify title
            VerifyTitle("Employees");

            //Logout from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);

            //Verify title
            VerifyTitle("Login");

            //Redirect to yopmail
            GetWebDriver().Navigate().GoToUrl("http://www.yopmail.com/en/");

            //Verify title
            VerifyTitle("YOPmail");

            //Enter email
            partnerAgentHelperNewSkin.TypeText("Yopmail", name);

            //Click on button
            partnerAgentHelperNewSkin.ClickElement("YopmailClick");

            partnerAgentHelperNewSkin.WaitForWorkAround(5000);

            //Switch to frame
            partnerAgentHelperNewSkin.switchFrame("ifinbox");

            //Click on Mail
            partnerAgentHelperNewSkin.ClickElement("UserMail");

            //Switch to default
            GetWebDriver().SwitchTo().DefaultContent();

            //Switch to frame
            partnerAgentHelperNewSkin.switchFrame("ifmail");

            //Click on URL
            partnerAgentHelperNewSkin.ClickElement("OfficeLink");

            //Switch window
            partnerAgentHelperNewSkin.SwitchNewWindow("Login");

            //Verify message
            partnerAgentHelperNewSkin.WaitForText("Thank you, your account is activated now", 30);

            //Verify title
            VerifyTitle("Login");

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to Employee page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/employees/");

            //verify title
            VerifyTitle("Employees");

            //scroll to element
            partnerAgentHelperNewSkin.scrollToElement("SelectList");

            //Select 1000
            partnerAgentHelperNewSkin.SelectByText("SelectList", "1000");

            //verify title
            VerifyTitle("Employees");

            //Open user profile
            partnerAgentHelperNewSkin.Click("//a[contains(text(),'"+name+"')]");

            //Wait for text
            partnerAgentHelperNewSkin.WaitForText("Disable", 30);

            //Click on Disable button
            partnerAgentHelperNewSkin.ClickElement("UserDisable");

            //Type text
            partnerAgentHelperNewSkin.TypeInArea("DisableArea", "Testing");

            //Click on Disable overlay
            partnerAgentHelperNewSkin.ClickElement("UserOverlayDisable");
        }
        public void residualAdjustmentTool1()
        {
            string[] username = null;
            string[] password = null;
            string[] log = null;
            var oXMLData = new XMLParse();
            oXMLData.LoadXML("../../Config/ApplicationSettings.xml");

            username = oXMLData.getData("settings/Credentials", "username");
            password = oXMLData.getData("settings/Credentials", "password");
            log = oXMLData.getData("settings/URL", "logout");

            //Initializing the objects
            var loginHelper = new LoginHelper(GetWebDriver());
            var clientHelper = new ClientsHelper(GetWebDriver());
            var partnerAgentHelperNewSkin = new PartnerAgentHelperNewSkin(GetWebDriver());

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

            //Verify Page title
            VerifyTitle("Dashboard");
            Console.WriteLine("Redirected at Dashboard screen.");

            //Go to Create Residual Adjustment Tool page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/rir/adjustments_tool/create");

            //Verify title
            VerifyTitle("Create Adjustment");

               //Select Merchant
            partnerAgentHelperNewSkin.SelectByText("RPMAdjust", "Agent");

            //Click on specific agent
            partnerAgentHelperNewSkin.ClickElement("RPMSpeficAgent");

            //Click on 'Select agent'
            partnerAgentHelperNewSkin.ClickElement("RPMSelectAgent");

            //Verify Page is clickable
            partnerAgentHelperNewSkin.ClickElement("RPMClose");

            //Click on Specific Merchant
            partnerAgentHelperNewSkin.ClickElement("RPMSpeficMerchant");

            //Click on 'Select marchent'
            partnerAgentHelperNewSkin.ClickElement("RPMSelectMerchant");

            //Verify Page is clickable
            partnerAgentHelperNewSkin.ClickElement("RPMClose");

            //Select Proseccor
            partnerAgentHelperNewSkin.SelectByText("RPMSelectProcessor", "Chy Processor");

            //Verify file format contains dropdown
            partnerAgentHelperNewSkin.verifyElementPresent("RPMFileFormat");

            //Select type
            partnerAgentHelperNewSkin.SelectByText("RPMType", "Transaction");

            //Enter Name
            partnerAgentHelperNewSkin.TypeText("RPMName", "Demo");

            //Click on Save button
            partnerAgentHelperNewSkin.ClickElement("ClickOnSaveBtnAdjustmnet");

            //Go to Residual Adjustment Tool page
            GetWebDriver().Navigate().GoToUrl("https://www.pegasus-test.com/selcorp/seloffice/rir/adjustments_tool");

            //Verify title
            VerifyTitle("Adjustments Tool");

            //Click on Reporting Period
            partnerAgentHelperNewSkin.ClickElement("RPMPeriod");

            //Verify Calendar available
            partnerAgentHelperNewSkin.verifyElementPresent("RPMCalender");

            //Enter ammount
            //Log out from the application
            GetWebDriver().Navigate().GoToUrl(log[0]);
        }