예제 #1
0
        public void Login()
        {
            UIMethods.Login();
            IWebDriver driver = UIMethods.driver;

            Assert.Equal(UIMethods.baseUrl + "MainPage/Main", driver.Url);
            driver.Dispose();
        }
예제 #2
0
        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();
        }
예제 #3
0
 public void CreateScheduleTask()
 {
     UIMethods.Login();
     UIMethods.CheckIfCurrentDayScheduleExistAndCreateIfNot();
     UIMethods.CreateTask();
 }