Exemple #1
0
        public void Common_methods()
        {
            Global.Driver.wait(5);
            //Click on the Owners tab
            Ownertab.Click();

            //Click MyRequest tab
            MyRequesttab.Click();

            // CLick AddRequest tab
            AddRequesttab.Click();

            // CLick Duedate tab
            DueDate.Click();

            //send keys Description
            Description.SendKeys(ExcelLib.ReadData(3, "TestData"));
            //click savebutton
            SaveButton.Click();
            //click owner again
            Ownertab2.Click();
            //My Request again
            MyRequesttab2.Click();
            //Enter the value in the search bar
            SearchBar.SendKeys("Added for verification");
            Global.Driver.wait(5);

            //Click on the search button
            SearchButton.Click();
        }
Exemple #2
0
        internal void SendRequest()
        {
            //Populate excel file
            ExcelLib.PopulateInCollection(Config.Keys_Resource.ExcelPath, "ListRental");
            Thread.Sleep(1000);

            //calling the common methods
            Common_methods();
            Thread.Sleep(500);

            //Select properties page
            PropertiesPage.Click();
            Thread.Sleep(1000);

            //Clicking on Send a Request button
            SendaRequest.Click();
            Thread.Sleep(1000);

            //Clicking on save button
            DueDate.Click();
            Thread.Sleep(1000);

            //Enter Request Description
            RequestDesc.SendKeys(ExcelLib.ReadData(2, "Description"));
            Driver.wait(2000);

            //Clicking on Send a Request Save button
            RequestSave.Click();
            Thread.Sleep(1000);
        }
Exemple #3
0
        internal void Inspections()
        {
            //Calling common methods
            Common_methods();
            Thread.Sleep(1000);

            //clicking on Inspections
            InspectionsPage.Click();
            Driver.wait(2000);

            //clicking on Inspections
            AddNewInspection.Click();
            Driver.wait(2000);

            //clicking on Inspections Property drop down
            PropertyDropDown.Click();
            Driver.wait(2000);

            //clicking on Inspections Property drop down three
            PropertyDropDownThree.Click();
            Driver.wait(2000);

            //clearing on Inspections Due Date
            DueDate.Click();
            //InspectionDueDate.Clear();
            Driver.wait(1000);

            //Enter Inspection Due Date
            //InspectionDueDate.SendKeys("15/09/2018");
            //Driver.wait(2000);

            //Enter Inspection Description
            InspectionDesc.SendKeys("This inspection is just a test only.");
            Driver.wait(3000);

            //clicking on Inspections Save button
            if (InspectionSave.Displayed)
            {
                InspectionSave.Click();
                Thread.Sleep(1000);
            }
        }