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(); }