Exemplo n.º 1
0
        public void Choise_0_passengers()
        {
            PageObject_HotelTest search_avia = new PageObject_HotelTest(driver);

            search_avia.Navigate();
            search_avia.Input_Sity("Минск");
            search_avia.Input_date();
            search_avia.ClickButtonHotel();
            search_avia.Check_count_people();
            search_avia.ClickButtonHotel();
            Assert.AreEqual(driver.FindElement(By.ClassName("WarningText__highlight")).Text, "Возраст ребенка установлен на 8 лет.", "No warning about default age of childrens");
        }
        public void Choise_0_passengers()
        {
            PageObject_HotelTest search_avia = new PageObject_HotelTest(driver);

            search_avia.Navigate();
            search_avia.Input_Sity("Минск");
            search_avia.Input_date();
            search_avia.ClickButtonHotel();
            search_avia.Serch_Apartament("Apartments Malinovka");
            Thread.Sleep(5000);

            Assert.AreEqual(driver.FindElement(By.ClassName("InfoBox__HotelTitle")).Text, "Apartments Malinovka", "No warning Apartments Malinovka");
        }