示例#1
0
 public void BlockCreateEmptyApplication()
 {
     Pages.Scheduler_Page.EnterOpenBlockWindow();
     CreateNewSlot.ClickOn();
     CreateNewBlock.ClickOn();
     softAssert.VerifyElementPresentInsideWindow(SaveAndClose, CancelOpenBlock);
     SaveAndClose.ClickOn();
     softAssert.VerifyErrorMsg();
     CancelOpenBlock.ClickOn();
     CloseWindow.ClickOn();
 }
 public void SearchAvailbleTimeApplication()
 {
     try
     {
         ExpertiseSelect.SendKeys(Keys.ArrowDown);
         ExpertiseSelect.SendKeys(Keys.ArrowDown);
         Thread.Sleep(500);
         var durationTest = Browser.Driver.FindElement(By.XPath("//*[@id='findTimeSlotForm']/div/div[2]/div[1]/div[1]/div[7]/div/div/span[5]/span/input[1]")).GetAttribute("aria-valuenow");
         SearchBtn.ClickOn();
         FirstFreeTime.ClickOn();
         FirstFreeTimeSetMeeting.ClickOn();
         softAssert.VerifyElementPresentInsideWindow(Pages.Meeting_Page.ApproveMeeting, Pages.Meeting_Page.CancelMeeting);
         softAssert.VerifyElementHasEqual(Pages.Meeting_Page.MeetingDuration.GetAttribute("aria-valuenow"), durationTest);
     }
     catch (ElementNotVisibleException)
     {
         CloseWindow.ClickOn();
         Log.Error("bug with searching availble time");
     }
 }