/// <summary> /// Search and edit the report period. /// </summary> public void SearchAndEditTheReportPeriod() { ReportPeriodSearch.SendKeys(rDescription); EditButton.Click(); var dateString = EditedBeginsOn.GetAttribute("value"); var endDate = PageHelper.ConvertDateToFormat(dateString, "dd/MM/yyyy"); var eDate = endDate.AddDays(2).ToString("dd/MM/yyyy"); Description.Clear(); Description.SendKeys("Edited" + rDescription); Driver.ExecuteJavaScript(@"$('#EndsOn').val('" + eDate + "')"); Driver.ExecuteJavaScript(@"$('#SubmissionDueDate').val('" + eDate + "')"); Driver.ExecuteJavaScript(@"$('#PaymentDate').val('" + eDate + "')"); CalendarYear.SendKeys("2018"); FiscalYear.SendKeys("2018"); SaveReportingPeriodButton.Click(); BackToList.Click(); }
/// <summary> /// Search and verify the edited report period. /// </summary> public void SearchAndVerifyTheEditedReportPeriod() { ReportPeriodSearch.SendKeys("Edited" + rDescription); ReportPeriodSearchResult_Desc.Text.Should().BeEquivalentTo("Edited" + rDescription); }
/// <summary> /// Search and verify the deleted report period. /// </summary> public void SearchAndVerifyTheDeletedReportPeriod() { ReportPeriodSearch.SendKeys(rDescription); NoResults.Text.Should().BeEquivalentTo("No results to show"); }