예제 #1
0
        public void Common_methods()
        {
            Driver.wait(5);
            //Click on skip button on popup window
            SkipButton.Click();
            Thread.Sleep(1000);

            //Click on the Owners tab
            // Debug.Assert(Driver.driver.Title == "Login");

            Ownertab.Click();
            Thread.Sleep(1000);
            //Global.Driver.wait(5);
            //Select properties page
            InspectionsPage.Click();
            Thread.Sleep(1000);
        }
예제 #2
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);
            }
        }