Beispiel #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();
        }
Beispiel #2
0
        public void Common_methods()
        {
            Global.Driver.wait(5);
            //Click on the Owners tab
            Ownertab.Click();

            //Select properties page
            PropertiesPage.Click();
        }
Beispiel #3
0
        public void Common_methods()
        {
            Driver.wait(10);

            //Click on Skip on the pop up window
            Skip.Click();

            //Click on the Owners tab
            Thread.Sleep(1000);
            Ownertab.Click();
        }
        public void Common_methods()
        {
            Global.Driver.wait(5);
            //Click on the Owners tab
            if (btnSkip.Displayed)
            {
                btnSkip.Click();
            }

            Ownertab.Click();

            //Select properties page
            PropertiesPage.Click();
        }
        //Common methods to navigate into the 'My Properties' page
        public void Common_methods()
        {
            //Skipping the actions on the Quick Links Window
            Global.Driver.wait(5);
            QuickLinksSkipButton.Click();

            Thread.Sleep(1000);

            //Click on the Owners tab
            Global.Driver.wait(10);
            Ownertab.Click();

            //Select properties page
            PropertiesPage.Click();
        }
Beispiel #6
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
            PropertiesPage.Click();
            Thread.Sleep(1000);
        }
Beispiel #7
0
 public void NavigateToOWner()
 {
     _Wait.Until(condition: ExpectedConditions.ElementExists(By.CssSelector("div.ui.dropdown.item")));
     Ownertab.Click();
 }
Beispiel #8
0
        internal void ListAsRental()
        {
            //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();

            //Clicking on save button
            ListaRental.Click();
            Driver.wait(2000);

            //Enter Title
            Title.SendKeys(ExcelLib.ReadData(2, "Title"));
            Driver.wait(2000);

            //Enter moving cost
            MovingCost.SendKeys(ExcelLib.ReadData(2, "MovingCost"));
            Driver.wait(2000);

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

            //Enter List target rent
            ListTargetRent.SendKeys(ExcelLib.ReadData(2, "TargetRent"));
            Driver.wait(2000);

            //Enter Available date
            AvailableDate.Clear();
            Driver.wait(500);
            AvailableDate.SendKeys("31/08/2018");
            Driver.wait(2000);

            //Enter Occupant Count
            OccupantCount.SendKeys(ExcelLib.ReadData(2, "Occupants"));
            Driver.wait(2000);

            //Upload a file thru AutoIT
            Driver.wait(1000);
            AutoItX3 autoIT = new AutoItX3();

            Uploadingfile.Click();
            autoIT.WinActivate("Open");
            Thread.Sleep(1000);
            autoIT.Send(@"C:\Users\VictorFelix\source\repos\automationOnboardingSample-master\Keys_Onboarding\TestReports\Screenshots\home.jpg");
            Thread.Sleep(1000);
            autoIT.Send("{Enter}");
            Thread.Sleep(1000);

            //Clicking on Save
            ListSave.Click();
            Driver.wait(2000);

            //Clicking on OK on Alert
            //Driver.driver.SwitchTo().Alert().Accept();
            //Driver.wait(2000);

            //Click on the Owners tab
            Ownertab.Click();
            Thread.Sleep(1000);

            //Click on the Rental Listings button
            RentalListings.Click();
            Thread.Sleep(1000);

            //Search for added list property
            SearchBox.SendKeys(ExcelLib.ReadData(2, "Title"));
            Driver.wait(2000);

            //Clicking on Search icon
            SearchBtn.Click();
            Driver.wait(2000);
        }