Esempio n. 1
0
        public void SC2TC02_SearchOneWayFlight(IDictionary <string, string> parameters)
        {
            // instantiate required page
            oneWayflight = new OneWayFlight(Driver());

            string baseURL = Driver().Url.ToString();


            oneWayflight

            // select flight mode
            .SelectFlightMode()


            // enter fromCity
            .SelectCity(CommonElementGroup.txtFromCity, parameters["fromCity"])

            //enter toCity
            .SelectCity(CommonElementGroup.txToCity, parameters["toCity"])

            // select date

            .SelectDepartureDate(parameters["year"], parameters["month"], parameters["day"])


            // set traveller details
            .SelectAndApplyTravellersDetails()

            //search with selected criteria
            .SubmitCriteriaAndSearchFlight();

            // check next page retrived after submit
            Assert.AreNotEqual(Driver().Url.ToString(), baseURL);
        }
Esempio n. 2
0
        public void SC2TC01_LaunchOneWayFlightModule()
        {
            // instantiate required page
            oneWayflight = new OneWayFlight(Driver());

            // launch module
            oneWayflight.LaunchModule();

            // verify module launched
            Assert.AreEqual("Flight bookings, Cheap flights, Lowest Air tickets @Cleartrip", Driver().Title);
        }