public static void cleanup()
        {
            AgentAndPartnersResidualPayouts s = new AgentAndPartnersResidualPayouts();
            s.SetupTest();
            s.LoginUser("username8", "password8");
            s.chyHelper = new ChyHelper(s.GetWebDriver(), "/AgentAndPartnerResidualPayouts.xml");

            s.chyHelper.MouseHover("ResidualIncome/ResidualIncomeTab");
            s.chyHelper.ClickElement("ResidualIncome/ImportsTabOption");
            s.chyHelper.ClickElement("ResidualIncome/DeleteFirstResidualFile");
            s.chyHelper.AcceptAlert();
            s.chyHelper.WaitForWorkAround(3000);
            s.chyHelper.VerifyTrueOrFalse(false, "PartnerResiduals");

            s.GetWebDriver().Quit();
        }
        public static void setup(TestContext context)
        {
            AgentAndPartnersResidualPayouts s = new AgentAndPartnersResidualPayouts();
            s.SetupTest();
            //Import from corporate
            s.LoginUser("username8", "password8");
            s.chyHelper = new ChyHelper(s.GetWebDriver(), "/AgentAndPartnerResidualPayouts.xml");

            s.chyHelper.MouseHover("ResidualIncome/ResidualIncomeTab");
            s.chyHelper.ClickElement("ResidualIncome/ImportsTabOption");
            s.chyHelper.ClickElement("ResidualIncome/ImportNewButton");

            s.chyHelper.SelectByText("ResidualIncome/SelectProcessor", "Chy Processor");
            s.chyHelper.Select("ResidualIncome/SelectReportingMonth", "12");
            s.chyHelper.Select("ResidualIncome/SelectReportingYear", "2016");
            s.chyHelper.WaitForWorkAround(3000);
            s.chyHelper.ClickElement("ResidualIncome/FileDateBox");
            // s.chyHelper.WaitForWorkAround(3000);
            s.chyHelper.ClickElement("ResidualIncome/ChooseFileDate");
            s.chyHelper.Upload("ResidualIncome/UploadResidualFile", Path.GetFullPath("../../Resources/SelOfficePartnerResiduals.csv"));
            s.chyHelper.ClickElement("ResidualIncome/ImportButton");

            s.chyHelper.ClickElement("ResidualIncome/ProcessButton");

            //Calculate residual in corporate
            s.chyHelper.ClickElement("ResidualIncome/CalculationWizardButtonCorp");
            s.chyHelper.ClickElement("ResidualIncome/SkipStep1");
            s.chyHelper.WaitForWorkAround(2000);
            s.chyHelper.ClickElement("ResidualIncome/CalculatePayoutsButtonCorp");
            s.chyHelper.WaitForWorkAround(2000);
            s.chyHelper.ClickElement("ResidualIncome/PublishPayoutsButton");
            s.chyHelper.WaitForWorkAround(3000);
            s.Logout();

            //calculate residual in office for agents
            s.LoginUser("username9", "password9");
            s.chyHelper.MouseHover("ResidualIncome/ResidualIncomeTab");
            s.chyHelper.MouseHover("ResidualIncome/OfficePayoutsTab");
            s.chyHelper.WaitForWorkAround(2000);
            s.chyHelper.ClickElement("ResidualIncome/PayoutsSummaryTabOption");

            s.chyHelper.ClickElement("ResidualIncome/CalculationWizardButtonOffice");
            s.chyHelper.ClickElement("ResidualIncome/AgentLookupButton");
            s.chyHelper.WaitForWorkAround(3000);
            s.chyHelper.ClickElement("ResidualIncome/CalculatePayoutsButtonOffice");
            s.chyHelper.WaitForWorkAround(3000);
            s.chyHelper.ClickElement("ResidualIncome/PublishPayoutsButtonOffice");
            s.chyHelper.WaitForWorkAround(5000);

            s.GetWebDriver().Quit();
        }