public void WhenUserClicksOnListRentalsButtonAndTypesAllTheRequiredFieldsAndClickSaveButton()
        {
            // Creates a toggle for the given test, adds all log events under it
            test = extent.StartTest("ListARental");


            //create the object of the CommonPage
            CommonPage pageproperties = new CommonPage();

            pageproperties.clickOwners();


            //create the object of the OwnersPage
            OwnersPage PageOwners = new OwnersPage();


            PageOwners.clickListARental();

            //create the object of the ListARental Page
            ListARental PageListRental = new ListARental();

            //Enters all the required fields and saves the changes
            PageListRental.ListAPropertyForRental(true, false);

            System.Threading.Thread.Sleep(3000);
        }
Esempio n. 2
0
        public void WhenIClickOnTheAddNewPropertyButton()
        {
            //create the object of the OwnersPage
            OwnersPage PageOwners = new OwnersPage();

            PageOwners.clickAddProperty();
        }
Esempio n. 3
0
        public void WhenUserClicksOnTheDeletePropertyButtonInThePropertyPage()
        {
            //create the object of the OwnersPage
            OwnersPage PageOwners = new OwnersPage();

            PageOwners.clickDeleteProperty();
            System.Threading.Thread.Sleep(3000);
        }
Esempio n. 4
0
        public void WhenUserClicksOnThePropertiesLink()
        {
            //create the object of the LoginPage
            DashboardPage page = new DashboardPage();

            System.Threading.Thread.Sleep(2000);
            page.Propertyclick();
            ConfigFile.MyPropertyPageTitle = BrowserFactory.Title();


            //create the object of the OwnersPage
            OwnersPage PageOwners = new OwnersPage();

            System.Threading.Thread.Sleep(2000);
            PageOwners.clickbackbutton();
        }
        public void WhenUserClicksOnTheDeletePropertyButtonInThePropertyPage()
        {
            // Creates a toggle for the given test, adds all log events under it
            test = extent.StartTest("Delete a Property");


            //create the object of the CommonPage
            CommonPage pageproperties = new CommonPage();

            pageproperties.clickOwners();

            //create the object of the OwnersPage
            OwnersPage PageOwners = new OwnersPage();

            PageOwners.clickDeleteProperty();
            System.Threading.Thread.Sleep(3000);
        }
        public void WhenUserClicksOnListRentalsButtonAndTypesAndClickSaveButton(string property, string title, string Desc, int cost, int rent, string date, int count, string petsallowed)
        {
            //create the object of the OwnersPage
            OwnersPage PageOwners = new OwnersPage();

            PageOwners.clickListARental();

            //create the object of the ListARental Page
            ListARental PageListRental = new ListARental();

            PageListRental.dataentry(property, title, Desc, cost, rent, date, count, petsallowed);

            System.Threading.Thread.Sleep(3000);

            //  Click on the save button

            PageListRental.click(true, false);
            System.Threading.Thread.Sleep(4000);
        }