public void Login() { UIMethods.Login(); IWebDriver driver = UIMethods.driver; Assert.Equal(UIMethods.baseUrl + "MainPage/Main", driver.Url); driver.Dispose(); }
public void CreateSchedule() { UIMethods.Login(); UIMethods.CreateScheduleWithCurrentDay(); IWebDriver driver = UIMethods.driver; bool newDateExist = UIMethods.IsElementPresent(By.Id(DateTime.Now.Date.ToShortDateString())); Assert.True(newDateExist); driver.Dispose(); }
public void CreateScheduleTask() { UIMethods.Login(); UIMethods.CheckIfCurrentDayScheduleExistAndCreateIfNot(); UIMethods.CreateTask(); }