コード例 #1
0
        internal void EnterShareSkill()
        {
            //Pouplate ShareSkill Data into ExcelReader
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ShareSkill");

            //Enter the data on HTML form
            Title.EnterText(GlobalDefinitions.ExcelLib.ReadData(2, "Title"));
            GlobalDefinitions.wait(10);

            Description.EnterText(GlobalDefinitions.ExcelLib.ReadData(2, "Description"));
            GlobalDefinitions.wait(10);

            //Select Category and Subcategory
            CategoryDropDown.selectDropDown(GlobalDefinitions.ExcelLib.ReadData(2, "Category"));
            GlobalDefinitions.wait(10);
            SubCategoryDropDown.selectDropDown(GlobalDefinitions.ExcelLib.ReadData(2, "SubCategory"));
            GlobalDefinitions.wait(10);

            //Enter tag
            Tags.EnterText(GlobalDefinitions.ExcelLib.ReadData(2, "Tags"));
            Tags.EnterText(Keys.Enter);
            GlobalDefinitions.wait(10);

            //Select Radio button
            selectServiceRadioButton(ServiceTypeOptions, GlobalDefinitions.ExcelLib.ReadData(2, "ServiceType"));
            GlobalDefinitions.wait(10);

            selectLocationRadioButton(LocationTypeOptions, GlobalDefinitions.ExcelLib.ReadData(2, "LocationType"));
            GlobalDefinitions.wait(10);

            // select start and end data and time
            //selectStartDateAndTime();
            GlobalDefinitions.wait(20);

            // select skill trade: Skill exchange or credit
            selectSkillTrade(SkillTradeOption, GlobalDefinitions.ExcelLib.ReadData(2, "Credit"));
            GlobalDefinitions.wait(10);

            // Upload work sample.docx
            fileUpload.Click();
            GlobalDefinitions.FileUpload.uploadFileUsingAutoIT(@MarsResource.FileUpload);

            GlobalDefinitions.wait(20);

            // select Active Radio button: Active or Hidden
            selectActiveRadioButton(ActiveOption, GlobalDefinitions.ExcelLib.ReadData(2, "Active"));
        }