コード例 #1
0
        internal void Service_Location(int dataRow)
        {
            string ServiceType = GlobalDefinitions.ExcelLib.ReadData(dataRow, "ServiceType");

            if (ServiceType == "Hourly basis service")
            {
                ServiceHourly.Click();
            }
            else
            {
                ServiceOneOff.Click();
            }

            string LocationType = GlobalDefinitions.ExcelLib.ReadData(dataRow, "LocationType");

            if (LocationType == "On-site")
            {
                LocationOnSite.Click();
            }
            else
            {
                LocationOnline.Click();
            }
        }
コード例 #2
0
        internal void clickRadioBtn(int dataRow)
        {
            string serviceType = GlobalDefinitions.ExcelLib.ReadData(dataRow, "ServiceType");

            if (serviceType == "One-off service")
            {
                ServiceOneOff.Click();
            }
            else
            {
                ServiceHourly.Click();
            }

            string LocationType = GlobalDefinitions.ExcelLib.ReadData(dataRow, "LocationType");

            if (LocationType == "On-site")
            {
                LocationOnSite.Click();
            }
            else
            {
                LocationOnline.Click();
            }
        }
コード例 #3
0
        internal void Edit_InputData(int dataRow)
        {
            Thread.Sleep(2000);
            Title.Clear();
            Title.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Title"));

            Description.Clear();
            Description.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Description"));
            Thread.Sleep(2000);

            //CategoryDropDown.Clear();
            CategoryDropDown.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Category"));
            //CategoryDropDown.Click();

            Thread.Sleep(2000);
            SubCategoryDropDown.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "SubCategory"));
            SubCategoryDropDown.Click();
            Tags.Clear();
            Tags.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Tags"));
            Tags.SendKeys(Keys.Enter);
            Tags.Click();

            //Edit Service Type
            Thread.Sleep(2000);
            string ServiceType = GlobalDefinitions.ExcelLib.ReadData(dataRow, "ServiceType");

            if (ServiceType == "Hourly basis service")
            {
                ServiceHourly.Click();
            }
            else
            {
                ServiceOneOff.Click();
            }


            //Edit Location Type
            Thread.Sleep(2000);
            string LocationType = GlobalDefinitions.ExcelLib.ReadData(dataRow, "LocationType");

            if (LocationType == "Online")
            {
                LocationOnline.Click();
            }
            else
            {
                LocationOnSite.Click();
            }

            //Date and  time

            StartDateDropDown.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Startdate"));
            // Fill End Date
            EndDateDropDown.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Enddate"));



            //Days.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Selectday"));

            //StartDateDropDown.SendKeys(GlobalDefinitions.ExcelLib.ReadData(dataRow, "Startdate") + Keys.Enter);
            //StartDateDropDown.Click();
            //EndDateDropDown.SendKeys(GlobalDefinitions.ExcelLib.ReadData(dataRow, "Enddate") + Keys.Enter);
            //EndDateDropDown.Click();



            StartTimeDropDown.SendKeys(GlobalDefinitions.ExcelLib.ReadData(dataRow, "StartTime") + Keys.Enter);
            StartTimeDropDown.Click();
            EndTimeDropDown.SendKeys(GlobalDefinitions.ExcelLib.ReadData(dataRow, "EndTime") + Keys.Enter);
            EndTimeDropDown.Click();

            SkillExchange.Click();
            SkillExchange.SendKeys(GlobalDefinitions.ExcelLib.ReadData(dataRow, "Skill-Exchange") + Keys.Enter);
            ActiveOption.Click();
            Thread.Sleep(2000);
        }