public void WhenIClickAddButton()
 {
     ViewAttendanceRecordPage viewAttendanceRecordPage = new ViewAttendanceRecordPage(driver);
     Assert.IsTrue(viewAttendanceRecordPage.IsVisible, "View Attendance Record page is not visible");
     viewAttendanceRecordPage.ClickAdd();
 }
 public void GivenValueIsShownInPinchInCell(string value)
 {
     ViewAttendanceRecordPage viewAttendanceRecordPage = new ViewAttendanceRecordPage(driver);
     Assert.IsTrue(viewAttendanceRecordPage.IsVisible, "View Attendance Record page is not visible");
     Assert.AreEqual(value, viewAttendanceRecordPage.TableRows.First().PunchInText);
 }
 public void GivenISelectedDay(int day)
 {
     ViewAttendanceRecordPage viewAttendanceRecordPage = new ViewAttendanceRecordPage(driver);
     Assert.IsTrue(viewAttendanceRecordPage.IsVisible, "View Attendance Record page is not visible");
     viewAttendanceRecordPage.SelectDay(day);
 }
 public void GivenIClickedViewButton()
 {
     ViewAttendanceRecordPage viewAttendanceRecordPage = new ViewAttendanceRecordPage(driver);
     Assert.IsTrue(viewAttendanceRecordPage.IsVisible, "View Attendance Record page is not visible");
     viewAttendanceRecordPage.ClickView(); ;
 }
 public void GivenISetAsEmployeeName(string employeeName)
 {
     ViewAttendanceRecordPage viewAttendanceRecordPage = new ViewAttendanceRecordPage(driver);
     Assert.IsTrue(viewAttendanceRecordPage.IsVisible, "View Attendance Record page is not visible");
     viewAttendanceRecordPage.SetEmployeeName(employeeName);
 }