public void Clear()
 {
     ContactInfor.Clear();
     Title   = null;
     Content = null;
     StartDate.Clear();
     StartTime.Clear();
     StartDateTime   = null;
     StartDateString = null;
     EndDate.Clear();
     EndTime.Clear();
     EndDateTime        = null;
     OrderReference     = null;
     Location           = null;
     Duration           = 0;
     CreateHasDetail    = false;
     RecreateState      = null;
     AvailabilityResult = null;
     MeetingRoom        = null;
     MeetingRoomName    = null;
     UnconfirmedMeetingRoom.Clear();
     IgnoredMeetingRoom.Clear();
     ShowMeetingRoomIndex = 0;
     Building             = null;
     FloorNumber          = null;
     AllDay = false;
 }
示例#2
0
 private void clear()
 {
     txtTitle.Text = "";
     txtURL.Text   = "";
     StartDate.Clear();
     EndDate.Clear();
 }
示例#3
0
        public void TenantDetails()
        {
            //Enter email
            Email.SendKeys(ExcelLib.ReadData(2, "TenantEmail"));
            Driver.wait(1000);

            //Enter FirstName
            FirstName.SendKeys(ExcelLib.ReadData(2, "FirstName"));
            Driver.wait(1000);

            //Enter LastName
            LastName.SendKeys(ExcelLib.ReadData(2, "LastName"));
            Driver.wait(1000);

            //Clear Start date bar
            StartDate.Clear();
            Driver.wait(1000);

            //Enter StartDate
            StartDate.SendKeys("12/08/2018");
            Driver.wait(1000);

            //Clear Start date bar
            EndDate.Clear();
            Driver.wait(1000);

            //Enter EndDate
            EndDate.SendKeys("21/08/2019");
            Driver.wait(1000);

            //Enter Rent amount
            RentAmount.SendKeys(ExcelLib.ReadData(2, "RentAmount"));
            Driver.wait(1000);

            //Clear Payment Start date bar
            PSDate.Clear();
            Driver.wait(1000);

            //Enter payment start date
            PSDate.SendKeys("15/08/2018");
            Driver.wait(1000);

            //Clicking on Payment option drop down
            PaymentOpt.Click();
            Driver.wait(2000);

            //Clicking on Payment option 2 in drop down
            PaymentOptTwo.Click();
            Driver.wait(2000);

            //Clinking on Save add button
            SaveProperty.Click();
            Driver.wait(2000);
            //Click(By.Id("saveProperty"));
        }
 public void ClearTimes()
 {
     StartDate.Clear();
     StartDateString = null;
     StartTime.Clear();
     StartDateTime = null;
     EndDate.Clear();
     EndTime.Clear();
     EndDateTime = null;
     Duration    = 0;
 }
 public void ClearTimesForRecreate()
 {
     StartDate.Clear();
     StartDateString = null;
     StartTime.Clear();
     StartDateTime = null;
     EndDate.Clear();
     EndTime.Clear();
     EndDateTime     = null;
     Duration        = 0;
     CreateHasDetail = true;
     RecreateState   = RecreateEventState.Time;
 }
 public void Clear()
 {
     ContactInfor.Clear();
     Title   = null;
     Content = null;
     StartDate.Clear();
     StartTime.Clear();
     StartDateTime   = null;
     StartDateString = null;
     EndDate.Clear();
     EndTime.Clear();
     EndDateTime     = null;
     OrderReference  = null;
     Location        = null;
     Duration        = 0;
     CreateHasDetail = false;
     RecreateState   = null;
 }
    //private void bindMonth()
    //{
    //    for (int i = 1; i <= 31; i++)
    //    {
    //        chkMonthly.Items.Add(i.ToString());
    //    }
    //}
    private void reset()
    {
        //DDLFrequency.ClearSelection();
        txtDesc.Text = "";
        StartDate.Clear();
        EndDate.Clear();
        txtEventTitle.Text = "";
        txtVenu.Text       = "";
        //StartTime.Clear();
        //EndTime.Clear();
        DDLsh.ClearSelection(); DDLsm.ClearSelection(); DDLeh.ClearSelection(); DDLem.ClearSelection(); DDLsampm.ClearSelection(); DDLeampm.ClearSelection();
        chkClub.Checked   = false;
        chkDining.Checked = false;
        chkEnter.Checked  = false;

        ////if (checkList)
        ////{
        ////    foreach (ListItem li in chkMonthly.Items)
        ////    {
        ////        li.Selected = false;
        ////    }
        ////}
    }
        public void EnterTenantDet()
        {
            _Wait.Until(ExpectedConditions.ElementExists(By.XPath("//*[@id='lname']")));
            TenantEmail.SendKeys("*****@*****.**");
            TenantFullname.SendKeys("Tenant");
            TenantLastName.SendKeys("TenantLast");
            RentAmt.SendKeys("200");

            /*   IJavaScriptExecutor js = (IJavaScriptExecutor)_driver;
             * js.ExecuteScript(StartDate.startD);
             *
             * String startD = "24/09/2018";
             */

            StartDate.Click();
            StartDate.Clear();
            StartDate.SendKeys("24/11/2018");
            System.Threading.Thread.Sleep(500);



            EndDate.Click();
            EndDate.Clear();
            EndDate.SendKeys("24/08/2028");
            System.Threading.Thread.Sleep(500);

            PaymentStartDate.Click();
            PaymentStartDate.Clear();
            PaymentStartDate.SendKeys("26/11/2018");
            System.Threading.Thread.Sleep(500);


            Liabilities.Click();
            _Wait.Until(ExpectedConditions.ElementExists(By.XPath("//*[@id='LiabilityDetail']/div/div[1]/div[2]/div[1]/input")));
            ValLiabilities.SendKeys("1000");
            ClickSave.Click();
        }
        public void EditServices()
        {
            //Wait for the Page to be loaded to edit by waiting for the title field to be visible
            Wait.ElementIsVisible(driver, "XPath", "//*[@id='service-listing-section']/div[2]/div/form/div[1]/div/div[2]/div/div[1]/input");

            //Clear the title
            Title.Clear();

            //Enter the updated data into the title field
            Title.SendKeys(ServiceData.TitleData(RowNum));

            //Clear the description field
            Description.Clear();

            //Enter the updated description
            Description.SendKeys(ServiceData.DescriptionData(RowNum));

            //Identify the Category
            SelectElement CategorySelect = new SelectElement(Category);

            //Select the required Category from the dropdown
            CategorySelect.SelectByText(ServiceData.CategData(RowNum));

            //Identify the SubCategory
            SelectElement SubCategorySelect = new SelectElement(SubCategory);

            //Select the required SubCategory from the dropdown
            SubCategorySelect.SelectByText(ServiceData.SubCategData(RowNum));

            //Enter the additional tag to be added
            Tags.SendKeys(ServiceData.TagsData(RowNum));
            Tags.SendKeys(Keys.Enter);

            //Convert the count of Skill Exchange Tags from String to integer
            int Count = Int32.Parse(ServiceData.TagsCntData(RowNum));

            //Invoke the function to choose the Service Type
            ChooseServiceType(ServiceData.SrvcTypeData(RowNum));

            //Invoke the function to choose the Location Type
            ChooseLocationType(ServiceData.LocatnTypeData(RowNum));

            //Invoke the function to choose the Skills Trade Type
            ChooseSkillTrade(ServiceData.SkillTrdeData(RowNum), Count);

            //Clear the field before adding the date
            StartDate.Clear();

            //Enter the data for 'Start date' from excel
            StartDate.SendKeys(ServiceData.StrtDateData(RowNum));

            //Click on the 'End date' field
            EndDate.Click();

            //Clear the 'End date'
            EndDate.Clear();

            //Enter the data for 'End date' from excel
            EndDate.SendKeys(ServiceData.EndDateData(RowNum));

            //Click on the Save button
            SaveButton.Click();
        }
 public void EnterStartDate(string date)
 {
     StartDate.Clear();
     StartDate.SendKeys(date);
 }
示例#11
0
        public void FillDetailsOfServiceProvided()
        {
            //Wait for the share skill page to be loaded and until title field text box is visible
            Wait.ElementIsVisible(driver, "XPath", "//*[@id='service-listing-section']/div[2]/div/form/div[1]/div/div[2]/div/div[1]/input");

            //Read the data for Title from excel and enter the data into the Title Textbox
            Title.SendKeys(ServiceData.TitleData(RowNum));

            //Read the data for Description from excel and enter the data into the Description Textbox
            Description.SendKeys(ServiceData.DescriptionData(RowNum));

            //Read the Category name from the excel
            var CategoryData = ServiceData.CategData(RowNum);

            //Read the Subcategory name from the excel
            var SubCategoryData = ServiceData.SubCategData(RowNum);

            SelectElement CategorySelect = new SelectElement(Category);

            //Select the required Category from the dropdown
            CategorySelect.SelectByText(CategoryData);

            SelectElement SubCategorySelect = new SelectElement(SubCategory);

            //Select the required SubCategory from the dropdown
            SubCategorySelect.SelectByText(SubCategoryData);

            //Read the Skill exchange tag count from the excel
            var SkillExchngCount = ServiceData.TagsCntData(RowNum);

            int Count     = Int32.Parse(SkillExchngCount);
            int TagsCount = Int32.Parse(ServiceData.TagsDataCount(RowNum));

            int DaysCnt = Int32.Parse(ServiceData.AvailableDaysCnt(RowNum));

            //Fill in the Start and End times for all days
            for (int TagCount = 0; TagCount < TagsCount; TagCount++)
            {
                //Read the data for Tags from excel and enter the data into the Tags field
                Tags.SendKeys(ExcelLibHelpers.ReadData((TagCount + RowNum), "Tags"));

                //Press ENTER key to add the tag
                Tags.SendKeys(Keys.Enter);
            }

            //Read the Service Type data from excel into a variable
            var ServiceTypeData = ServiceData.SrvcTypeData(RowNum);

            //Read the Location Type data from excel into a variable
            var LocationTypeData = ServiceData.LocatnTypeData(RowNum);

            //Read the Skill Trade data from excel into a variable
            var SkillTradeData = ServiceData.SkillTrdeData(RowNum);

            //Read the Active Status data from excel into a variable
            var ActiveStatusData = ServiceData.ActvStatusData(RowNum);

            //Choose Service Type
            ChooseServiceType(ServiceTypeData);

            //Choose Location Type
            ChooseLocationType(LocationTypeData);

            //Choose Skill Trade
            ChooseSkillTrade(SkillTradeData, Count);

            //Click on the 'Start date' field
            StartDate.Click();

            //Read the Start Date data from the excel
            var StartDateData = ServiceData.StrtDateData(RowNum);

            //Read the End Date data from the excel
            var EndDateData = ServiceData.EndDateData(RowNum);

            //Initialse the variable that hold StartTime and EndTime
            var StartTimeData = "000000";
            var EndTimeData   = "000000";

            //Clear the field before adding the date
            StartDate.Clear();

            //Enter the data for 'Start date' from excel
            StartDate.SendKeys(StartDateData);

            Wait.wait(1, driver);

            //Click on the 'End date' field
            EndDate.Click();

            //Clear the 'End date'
            EndDate.Clear();

            //Enter the data for 'End date' from excel
            EndDate.SendKeys(EndDateData);


            //Select the Start time, End time, Available Days
            for (int DaysCount = 0; DaysCount < DaysCnt; DaysCount++)
            {
                if (ServiceData.AvailableDays(RowNum) == "Sun")
                {
                    CheckBox[0].Click();
                    StartTimeData = ServiceData.StrtTimeData(RowNum);
                    EndTimeData   = ServiceData.EndTimeData(RowNum);
                    StartTime[0].Click();
                    StartTime[0].SendKeys(StartTimeData);
                    EndTime[0].Click();
                    EndTime[0].SendKeys(EndTimeData);
                }
                else if (ServiceData.AvailableDays(RowNum) == "Mon")
                {
                    StartTimeData = ServiceData.StrtTimeData(RowNum);
                    EndTimeData   = ServiceData.EndTimeData(RowNum);
                    CheckBox[1].Click();
                    StartTime[1].Click();
                    StartTime[1].SendKeys(StartTimeData);
                    EndTime[1].Click();
                    EndTime[1].SendKeys(EndTimeData);
                }
                else if (ServiceData.AvailableDays(RowNum) == "Tue")
                {
                    StartTimeData = ServiceData.StrtTimeData(RowNum);
                    EndTimeData   = ServiceData.EndTimeData(RowNum);
                    CheckBox[2].Click();
                    StartTime[2].Click();
                    StartTime[2].SendKeys(StartTimeData);
                    EndTime[2].Click();
                    EndTime[2].SendKeys(EndTimeData);
                }
                else if (ServiceData.AvailableDays(RowNum) == "Wed")
                {
                    StartTimeData = ServiceData.StrtTimeData(RowNum);
                    EndTimeData   = ServiceData.EndTimeData(RowNum);
                    CheckBox[3].Click();
                    StartTime[3].Click();
                    StartTime[3].SendKeys(StartTimeData);
                    EndTime[3].Click();
                    EndTime[3].SendKeys(EndTimeData);
                }
                else if (ServiceData.AvailableDays(RowNum) == "Thu")
                {
                    StartTimeData = ServiceData.StrtTimeData(RowNum);
                    EndTimeData   = ServiceData.EndTimeData(RowNum);
                    CheckBox[4].Click();
                    StartTime[4].Click();
                    StartTime[4].SendKeys(StartTimeData);
                    EndTime[4].Click();
                    EndTime[4].SendKeys(EndTimeData);
                }
                else if (ServiceData.AvailableDays(RowNum) == "Fri")
                {
                    StartTimeData = ServiceData.StrtTimeData(RowNum);
                    EndTimeData   = ServiceData.EndTimeData(RowNum);
                    CheckBox[5].Click();
                    StartTime[5].Click();
                    StartTime[5].SendKeys(StartTimeData);
                    EndTime[5].Click();
                    EndTime[5].SendKeys(EndTimeData);
                }
                else
                {
                    StartTimeData = ServiceData.StrtTimeData(RowNum);
                    EndTimeData   = ServiceData.EndTimeData(RowNum);
                    CheckBox[6].Click();
                    StartTime[6].Click();
                    StartTime[6].SendKeys(StartTimeData);
                    EndTime[6].Click();
                    EndTime[6].SendKeys(EndTimeData);
                }
                RowNum++;
            }


            //Choose the Active status button
            ChooseActiveStatus(ActiveStatusData);

            //Click on the save button
            SaveButton.Click();

            //Implicit wait
            Wait.wait(1, driver);
        }