Exemple #1
0
 public void TestWriteReview()
 {
     HomePage.AccessHotels.Click();
     Thread.Sleep(8000);
     HotelPage.SelectHotelByName(driver, "Islamabad Marriott Hotel");
     Thread.Sleep(4000);
     HotelPage.WriteReviewButton.Click();
     HotelPage.SelectPoints(HotelPage.CleanValue, "10");
     HotelPage.SelectPoints(HotelPage.FacilitiesValue, "5");
     HotelPage.SelectPoints(HotelPage.ComfortValue, "10");
     HotelPage.SelectPoints(HotelPage.StaffValue, "5");
     HotelPage.SelectPoints(HotelPage.LocationValue, "10");
     HotelPage.YourName.SendKeys("VICIMEL MEDINA");
     HotelPage.YourEmail.SendKeys("*****@*****.**");
     HotelPage.ReviewComments.SendKeys("Not so bad. Good Amenities");
     HotelPage.SubmitReviewButton.Click();
     //Thread.Sleep(2000);
     //Assert.AreEqual(HotelPage.ReviewValidation.Text, "Review Posted Successfully");
     //Thread.Sleep(10000);
 }