public void WhenIFillTheDetailOfListRentalPageAndClickSaveAndAcceptListRental()
        {
            //move to listRental Page
            ListRentalPage listRentalPage = new ListRentalPage();

            //Fill the detail of ListRental Page
            listRentalPage.FillTheDetails();
            //Verity ListRental Page
            listRentalPage.VerfyListRentalPage();
            //Save and Confirm list Rental
            RentalPropertiesPage rentalPropertiesPage = listRentalPage.ClickSaveAndAcceptListRental();
        }
Beispiel #2
0
            public void ListARental()
            {
                // Creates a toggle for the given test, adds all log events under it
                test = extent.StartTest("List A Rental and Verity it" + GetDateAndTime.GetTimeNow());
                //Now page is Dashboard, then go to PropertyOwnersPage
                PropertyOwnerPage propertyOwnerPage = new DashboardPage().GotoPropertyOwnersPage();

                //move to listRental Page
                ListRentalPage listRentalPage = propertyOwnerPage.ClickListRental();

                //Fill the detail of ListRental Page
                listRentalPage.FillTheDetails();
                //Verity ListRental Page
                listRentalPage.VerfyListRentalPage();
                //Save and Confirm list Rental
                RentalPropertiesPage rentalPropertiesPage = listRentalPage.ClickSaveAndAcceptListRental();

                //check the result
                rentalPropertiesPage.CheckRentalWhichAdded();
            }