コード例 #1
0
 public void SearchAvailbleTimeFromTreatmentApplication()
 {
     SearchBtn.ClickOn();
     FirstFreeTime.ClickOn();
     FirstFreeTimeSetMeeting.ClickOn();
     softAssert.VerifyElementPresentInsideWindow(Pages.Meeting_Page.ApproveMeeting, Pages.Meeting_Page.CancelMeeting);
 }
コード例 #2
0
 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");
     }
 }