public void WhenIDeceaseASpouse()
        {
            ConstituentPanel.SelectInfoTab();  // Go to the personal info tab
            string xPathdeceased = "//td[contains(@class,'x-toolbar-cell') and not (contains(@class,'x-hide-display'))]//table[contains(@id,'bbui-gen-tbaraction-')and not(contains(@class,'hide'))]/tbody/tr[2]/td[2]/em/button[./text() = 'Mark deceased']";

            ConstituentPanel.WaitClick(xPathdeceased);
            Dialog.SetTextField("//div[contains(@id, 'IndividualMarkDeceasedEditForm2')]//input[contains(@id, '_DECEASEDDATE_value')]", "10/15/2016");
            Dialog.Save();
        }
Beispiel #2
0
 private void AddMatchingGiftConditions()
 {
     try
     {
         ConstituentPanel.SelectInfoTab();
         ConstituentPanel.SelectInnerTab("Organization");
         string xButtonPath = "//div[contains(@class,'bbui-pages-contentcontainer') and not(contains(@class,'hide'))]//div[not(contains(@class,'x-hide-display')) and contains(@class,'bbui-pages-pagesection') and not(contains(@class,'row'))]//div[contains(@id,'pageSection')]/div/table/tbody/tr//td/table/tbody/tr//td/div[./text() = 'Matching gift conditions']/../../../../../../../../../../../div[contains(@class,'bbui-pages-section-tbar')]//tr//button[text()='Add']";
         ConstituentPanel.WaitClick(xButtonPath, 20);
         Dialog.SetDropDown("//div[contains(@id, '_MatchingGiftConditionAddForm2')]//input[contains(@id,'_MATCHINGGIFTCONDITIONTYPECODEID_value')]", "Employee");
         Dialog.SetTextField("//div[contains(@id, '_MatchingGiftConditionAddForm2')]//input[contains(@id,'_MATCHINGFACTOR_value')]", "0.50");
         Dialog.Save();
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not enter fields for a test organization. " + ex.ToString());
     }
 }
Beispiel #3
0
        public void GivenIAddConstituenciesToTheFollowingConstituents(Table table)
        {
            StepHelper.SetTodayDateInTableRow("Date from", table);
            StepHelper.SetTodayDateInTableRow("Date to", table);
            IList <dynamic> tableData = table.CreateDynamicSet().ToList();

            foreach (dynamic row in tableData)
            {
                //variables
                DateTime startDate = row.DateFrom;
                DateTime endDate   = row.DateTo;
                //navigation
                GetConstituentPanel(row.Surname + uniqueStamp);
                ConstituentPanel.SelectInfoTab();
                ConstituentPanel.SelectInnerTab("Constituencies");
                //set values
                Panel.ClickSectionAddButton("Constituencies");
                Panel.WaitClick(string.Format("//div[contains(@style,'visibility: visible')]//span[./text()='{0}']", row.Constituency));
                Dialog.SetTextField("//input[contains(@id,'_DATEFROM_value')]", startDate.ToShortDateString());
                Dialog.SetTextField("//input[contains(@id,'_DATETO_value')]", endDate.ToShortDateString());
                //save
                Dialog.Save();
            }
        }