示例#1
0
        //implement methods
        public override void InputFormFields()
        {
            WaitForEditorToDisplay();
            WaitForFrameToDisplay();
            WaitForBodyToDisplay();
            WaitForPanelToDisplay();

            UrlText.SendKeys(Data.Url);
            TitleText.SendKeys(Data.Title);
        }
示例#2
0
        //Fill out the list rental property form
        internal void AddRentalPropertyDetails()
        {
            // Populating the data from Excel
            ExcelLib.PopulateInCollection(Base.ExcelPath, "List Rental Property");

            SelectElement select1 = new SelectElement(SelectPropertyDropdown);

            select1.SelectByIndex(1);
            TitleText.SendKeys(ExcelLib.ReadData(2, "Title"));
            MovingCostText.SendKeys(ExcelLib.ReadData(2, "Moving Cost"));
            DescriptionText.SendKeys(ExcelLib.ReadData(2, "Description"));
            TargentRentText.SendKeys(ExcelLib.ReadData(2, "Target Rent"));

            AvailableDateDatepicker.Click();
            OccupantsCountText.SendKeys(ExcelLib.ReadData(2, "Occupants Count"));

            SelectElement select2 = new SelectElement(PetAllowedDropdown);

            select2.SelectByText("Yes");

            //upload file
            ChooseFilesButton.SendKeys(ExcelLib.ReadData(2, "Choose Files"));
        }