Example #1
0
 public void UserEntersInvalidClaimDateValues()
 {
     AdminAccountingPeriods.ClearAccPeriodAllFields();
     AdminAccountingPeriods.CreateClaimIssueData().SendKeys(invalid_form + '.' + invalid_form + '.' + invalid_form + invalid_form);
     AdminAccountingPeriods.CreateClaimPaymentData().SendKeys(invalid_form + '.' + invalid_form + '.' + invalid_form + invalid_form);
     AdminAccountingPeriods.AccPeriodsCreateYear().SendKeys(year);
     AdminAccountingPeriods.ClickOnPage().Click();
     AdminAccountingPeriods.CreateAccButton().Click();
     Assert.AreEqual("http://intnstest:50080/AccountingPeriods/Create", Driver.Url);
 }
 public void UserDeletesAllValuesAccPerEdit()
 {
     if (contrLang.LanguageDropDown().Text.Contains("EN"))
     {
         AccountingPeriodsPage.TableAccPeriod().FindElement(By.XPath("//tr[contains(string(), '" + month_select + " " + year + "')]//td[5]//a[1]")).Click();
         Assert.AreEqual(year, AccountingPeriodsPage.AccPeriodsCreateYear().GetAttribute("value"));
         Assert.AreEqual(AccountingPeriodsPage.MonthSel().GetAttribute("value") + "/1/" + year, AccountingPeriodsPage.CreateClaimIssueData().GetAttribute("value"));
         Assert.AreEqual(AccountingPeriodsPage.MonthSel().GetAttribute("value") + "/28/" + year, AccountingPeriodsPage.CreateClaimPaymentData().GetAttribute("value"));
     }
     else
     {
         AccountingPeriodsPage.TableAccPeriod().FindElement(By.XPath("//tr[contains(string(), '" + month_select_rs + " " + year + "')]//td[5]//a[1]")).Click();
         Assert.AreEqual(year, AccountingPeriodsPage.AccPeriodsCreateYear().GetAttribute("value"));
         Assert.AreEqual("1." + AccountingPeriodsPage.MonthSel().GetAttribute("value") + "." + year + ".", AccountingPeriodsPage.CreateClaimIssueData().GetAttribute("value"));
         Assert.AreEqual("28." + AccountingPeriodsPage.MonthSel().GetAttribute("value") + "." + year + ".", AccountingPeriodsPage.CreateClaimPaymentData().GetAttribute("value"));
     }
     AccountingPeriodsPage.ClearAccPeriodAllFields();
     AccountingPeriodsPage.ClickOnPage().Click();
     AccountingPeriodsPage.EditAccPeriodSave().Click();
 }