public void ModifyTimeForExistingTimeSheet() { LoginPage loginpage = new LoginPage(driver); loginpage.GoToPage(); HomePage home = loginpage.Login("*****@*****.**", "password"); string username = home.GetUserNamefromHomePage(); Assert.AreEqual("Sandhya Ravikumar", username); TimeSheetPage timeSheetPage = home.GoToTimeSheetPage(); TimeSheet modifyTimeSheet = timeSheetPage.ModifyTimeSheet("17 May, 2021"); TimeItem timeItem = modifyTimeSheet.ModifyTimeForExistingTimeSheet(); timeItem.SetTime("Beach", "8"); modifyTimeSheet.Submit(); home.Logout(); }
public void CreatingNewTimeSheet() { LoginPage loginpage = new LoginPage(driver); loginpage.GoToPage(); HomePage home = loginpage.Login("*****@*****.**", "password"); string username = home.GetUserNamefromHomePage(); Assert.AreEqual("Sandhya Ravikumar", username); TimeSheetPage timeSheetPage = home.GoToTimeSheetPage(); TimeSheet newTimeSheet = timeSheetPage.CreateNewTimeSheet(); TimeItem timeItem = newTimeSheet.CreateNewTimesheet("14 June, 2021"); timeItem.SetTime("Beach", "8"); newTimeSheet.Submit(); home.Logout(); }