public void BookingWithChildrenTest() { HomePage home = new HomePage(Driver); BookAHotelPage bookAHotelPage = new BookAHotelPage(Driver); bookAHotelPage.Input_Sity("Минск"); bookAHotelPage.Input_date(); //bookAHotelPage.ClickButtonHotel(); bookAHotelPage.Check_count_people_and_child(); bookAHotelPage.ClickButtonHotel(); Assert.AreEqual(Driver.FindElement(By.ClassName("WarningText__highlight")).Text, "Возраст ребенка установлен на 8 лет.", "No warning about default age of childrens"); Logger.Log.Debug("BookingWithChildrenTest"); }
public void Swimming() { HomePage home = new HomePage(Driver); BookAHotelPage freebf = new BookAHotelPage(Driver); freebf.Input_Sity("Минск"); freebf.Input_date(); freebf.ClickButtonHotel(); freebf.Also(); Thread.Sleep(5000); Assert.AreEqual(Driver.FindElement(By.XPath("(//*[@class='filter-item-content'])[5]")).Text, "Бассейн", "Not Free BreackFast"); Logger.Log.Debug("Swimming"); }
public void FreeBreakfast() { HomePage home = new HomePage(Driver); BookAHotelPage freebf = new BookAHotelPage(Driver); freebf.Input_Sity("Минск"); freebf.Input_date(); freebf.ClickButtonHotel(); freebf.Free_Breakfast(); Thread.Sleep(5000); Assert.AreEqual(Driver.FindElement(By.XPath("(//*[@class='Pill Pill--BenefitsPayments Pill--outlined'])[1]")).Text, "Завтрак", "Not Free BreackFast"); Logger.Log.Debug("FreeBreakfast"); }
public void SearchHotel() { HomePage home = new HomePage(Driver); BookAHotelPage searchkAHotelPage = new BookAHotelPage(Driver); searchkAHotelPage.Input_Sity("Минск"); searchkAHotelPage.Input_date(); searchkAHotelPage.ClickButtonHotel(); searchkAHotelPage.Serch_Apartament("Apartments Malinovka"); Thread.Sleep(5000); Assert.AreEqual(Driver.FindElement(By.ClassName("InfoBox__HotelTitle")).Text, "Малиновка Комфорт (Malinovka Comfort Apartments)", "No warning Apartments Malinovka"); Logger.Log.Debug("SearchHotel"); }